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-- Bug #48224 (array_rand no longer shuffles) --FILE-- <?php $a = range(0, 100); $a1..
Decoded Output download
--TEST--
Bug #48224 (array_rand no longer shuffles)
--FILE--
<?php
$a = range(0, 100);
$a1 = array_rand($a, count($a));
$a2 = array_rand($a, count($a));
$a3 = array_rand($a, count($a));
$a4 = array_rand($a, count($a));
var_dump($a1 === $a2 && $a1 === $a3 && $a1 === $a4);
?>
--EXPECT--
bool(true)
Did this file decode correctly?
Original Code
--TEST--
Bug #48224 (array_rand no longer shuffles)
--FILE--
<?php
$a = range(0, 100);
$a1 = array_rand($a, count($a));
$a2 = array_rand($a, count($a));
$a3 = array_rand($a, count($a));
$a4 = array_rand($a, count($a));
var_dump($a1 === $a2 && $a1 === $a3 && $a1 === $a4);
?>
--EXPECT--
bool(true)
Function Calls
range | 1 |
Stats
MD5 | 7e46fe785e36acfc4141f0a5d6cdfa2a |
Eval Count | 0 |
Decode Time | 76 ms |