Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- NDArray::equal --FILE-- <?php $a = \NDArray::array([[1, 2], [3, 4]]); $b = \NDArr..

Decoded Output download

--TEST--
NDArray::equal
--FILE--
<?php
$a = \NDArray::array([[1, 2], [3, 4]]);
$b = \NDArray::array([[5, 6], [7, 8]]);
$c = \NDArray::array([9, 10]);
print_r(\NDArray::equal($a, $b)->toArray());
print_r(\NDArray::equal($a, $a)->toArray());
print_r(\NDArray::equal($c, $c)->toArray());
?>
--EXPECT--
Array
(
    [0] => Array
        (
            [0] => 0
            [1] => 0
        )

    [1] => Array
        (
            [0] => 0
            [1] => 0
        )

)
Array
(
    [0] => Array
        (
            [0] => 1
            [1] => 1
        )

    [1] => Array
        (
            [0] => 1
            [1] => 1
        )

)
Array
(
    [0] => 1
    [1] => 1
)

Did this file decode correctly?

Original Code

--TEST--
NDArray::equal
--FILE--
<?php
$a = \NDArray::array([[1, 2], [3, 4]]);
$b = \NDArray::array([[5, 6], [7, 8]]);
$c = \NDArray::array([9, 10]);
print_r(\NDArray::equal($a, $b)->toArray());
print_r(\NDArray::equal($a, $a)->toArray());
print_r(\NDArray::equal($c, $c)->toArray());
?>
--EXPECT--
Array
(
    [0] => Array
        (
            [0] => 0
            [1] => 0
        )

    [1] => Array
        (
            [0] => 0
            [1] => 0
        )

)
Array
(
    [0] => Array
        (
            [0] => 1
            [1] => 1
        )

    [1] => Array
        (
            [0] => 1
            [1] => 1
        )

)
Array
(
    [0] => 1
    [1] => 1
)

Function Calls

None

Variables

None

Stats

MD5 41b82d708a315029517d9666be4d2454
Eval Count 0
Decode Time 83 ms