3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo '---begin---'; try { $result = @create_function('', 'return (return 1);'); } catch (ParseError $ex) { $result = $ex->getException(); } echo '---end---'; var_dump($result);
based on apEOR
Output for 7.0.0 - 7.2.0
---begin--- Fatal error: Uncaught Error: Call to undefined method ParseError::getException() in /in/CJrkD:7 Stack trace: #0 {main} thrown in /in/CJrkD on line 7
Process exited with code 255.
Output for 5.3.19 - 5.6.28
---begin------end---bool(false)
Process exited with code 255.