3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class x { public function __destruct() { echo 'destruct'; } } new x; register_shutdown_function(function(){ echo 'shutdown'; }); # We'll get killed, see what gets executed sleep 5;
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected '5' (T_LNUMBER) in /in/NQYAJ on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected T_LNUMBER in /in/NQYAJ on line 15
Process exited with code 255.