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::divide --FILE-- <?php $a = \NDArray::array([[1, 2], [3, 4]]); print_r(($..
Decoded Output download
--TEST--
NDArray::divide
--FILE--
<?php
$a = \NDArray::array([[1, 2], [3, 4]]);
print_r(($a / 2)->toArray());
print_r(($a / $a)->toArray());
print_r(($a / $a[0])->toArray());
print_r(($a / [[1],[2]])->toArray());
?>
--EXPECT--
Array
(
[0] => Array
(
[0] => 0.5
[1] => 1
)
[1] => Array
(
[0] => 1.5
[1] => 2
)
)
Array
(
[0] => Array
(
[0] => 1
[1] => 1
)
[1] => Array
(
[0] => 1
[1] => 1
)
)
Array
(
[0] => Array
(
[0] => 1
[1] => 1
)
[1] => Array
(
[0] => 3
[1] => 2
)
)
Array
(
[0] => Array
(
[0] => 1
[1] => 2
)
[1] => Array
(
[0] => 1.5
[1] => 2
)
)
Did this file decode correctly?
Original Code
--TEST--
NDArray::divide
--FILE--
<?php
$a = \NDArray::array([[1, 2], [3, 4]]);
print_r(($a / 2)->toArray());
print_r(($a / $a)->toArray());
print_r(($a / $a[0])->toArray());
print_r(($a / [[1],[2]])->toArray());
?>
--EXPECT--
Array
(
[0] => Array
(
[0] => 0.5
[1] => 1
)
[1] => Array
(
[0] => 1.5
[1] => 2
)
)
Array
(
[0] => Array
(
[0] => 1
[1] => 1
)
[1] => Array
(
[0] => 1
[1] => 1
)
)
Array
(
[0] => Array
(
[0] => 1
[1] => 1
)
[1] => Array
(
[0] => 3
[1] => 2
)
)
Array
(
[0] => Array
(
[0] => 1
[1] => 2
)
[1] => Array
(
[0] => 1.5
[1] => 2
)
)
Function Calls
None |
Stats
MD5 | de6971e79d0e87727bc946ebc3a42eaf |
Eval Count | 0 |
Decode Time | 90 ms |