3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(md5(NULL)); var_dump(md5(TRUE)); var_dump(md5(1)); var_dump(md5(0)); var_dump(md5("")); var_dump(md5(array())); function gen_secured_random() { // cause random is the way $a = rand(1337,2600)*42; $b = rand(1879,1955)*42; $a < $b ? $a ^= $b ^= $a ^= $b : $a = $b; return $a+$b; } var_dump(gen_secured_random()); var_dump(gen_secured_random()); var_dump(gen_secured_random()); var_dump(gen_secured_random()); var_dump(gen_secured_random());

preferences:
33.57 ms | 402 KiB | 5 Q