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::clip --FILE-- <?php $a = \NDArray::array([[-156, 150], [19, -39]]); prin..
Decoded Output download
--TEST--
NDArray::clip
--FILE--
<?php
$a = \NDArray::array([[-156, 150], [19, -39]]);
print_r(\NDArray::clip($a, min: 0, max: 10)->toArray());
print_r(\NDArray::clip($a[0], min: 0, max: 10)->toArray());
print_r(\NDArray::clip([[0],[-0.5]], min: 0, max: 10)->toArray());
?>
--EXPECT--
Array
(
[0] => Array
(
[0] => 0
[1] => 10
)
[1] => Array
(
[0] => 10
[1] => 0
)
)
Array
(
[0] => 0
[1] => 10
)
Array
(
[0] => Array
(
[0] => 0
)
[1] => Array
(
[0] => 0
)
)
Did this file decode correctly?
Original Code
--TEST--
NDArray::clip
--FILE--
<?php
$a = \NDArray::array([[-156, 150], [19, -39]]);
print_r(\NDArray::clip($a, min: 0, max: 10)->toArray());
print_r(\NDArray::clip($a[0], min: 0, max: 10)->toArray());
print_r(\NDArray::clip([[0],[-0.5]], min: 0, max: 10)->toArray());
?>
--EXPECT--
Array
(
[0] => Array
(
[0] => 0
[1] => 10
)
[1] => Array
(
[0] => 10
[1] => 0
)
)
Array
(
[0] => 0
[1] => 10
)
Array
(
[0] => Array
(
[0] => 0
)
[1] => Array
(
[0] => 0
)
)
Function Calls
None |
Stats
MD5 | f546094125d1b36ffb64430b878a1733 |
Eval Count | 0 |
Decode Time | 96 ms |