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((NULL).154644); 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());
Output for 7.1.0 - 7.1.13, 7.2.0 - 7.2.1
Parse error: syntax error, unexpected '.154644' (T_DNUMBER), expecting ',' or ')' in /in/pb64t on line 18
Process exited with code 255.

preferences:
171.84 ms | 1395 KiB | 23 Q