3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function lpErrorHandler($no,$str,$file,$line) { echo $no,$str,$file,$line throw new ErrorException($str,0,$no,$file,$line); } set_error_handler("lpExceptionHandler"); a();
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected 'throw' (T_THROW), expecting ',' or ';' in /in/Vt2ck on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected T_THROW, expecting ',' or ';' in /in/Vt2ck on line 5
Process exited with code 255.