3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('hhvm.log.always_log_unhandled_exceptions', false); set_exception_handler( function ($exception) { error_log("handling $exception"); }); throw new Exception("I'm an exception");
based on OnHBj
Output for 7.0.0 - 7.2.0
handling Exception: I'm an exception in /in/3Pd4c:7 Stack trace: #0 {main}
Output for 5.3.20 - 5.6.28
handling exception 'Exception' with message 'I'm an exception' in /in/3Pd4c:7 Stack trace: #0 {main}