3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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());
based on v1MLT
Output for 7.0.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.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: syntax error, unexpected T_DNUMBER, expecting ')' in /in/pb64t:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught Error: syntax error, unexpected T_DNUMBER, expecting ')' in /in/pb64t:18 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected '.154644' (T_DNUMBER) in /in/pb64t on line 18
Process exited with code 255.