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-- array_multisort() is stable --FILE-- <?php // Something of a dummy example where..
Decoded Output download
--TEST--
array_multisort() is stable
--FILE--
<?php
// Something of a dummy example where 0 and '0' are used as equal elements.
$ary1 = array_fill(0, 100, 0);
$origAry2 = $ary2 = array_merge(...array_fill(0, 50, [0, '0']));
array_multisort($ary1, $ary2);
var_dump($ary2 === $origAry2);
?>
--EXPECT--
bool(true)
Did this file decode correctly?
Original Code
--TEST--
array_multisort() is stable
--FILE--
<?php
// Something of a dummy example where 0 and '0' are used as equal elements.
$ary1 = array_fill(0, 100, 0);
$origAry2 = $ary2 = array_merge(...array_fill(0, 50, [0, '0']));
array_multisort($ary1, $ary2);
var_dump($ary2 === $origAry2);
?>
--EXPECT--
bool(true)
Function Calls
None |
Stats
MD5 | 70a8dfecc2588fca73933b0ed13ae357 |
Eval Count | 0 |
Decode Time | 76 ms |