3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function exception_handler($exception) { echo "Uncaught exception: " , $exception->getMessage(), "\n"; } set_exception_handler('exception_handler'); throw new Exception('Uncaught Exception'); echo "Not Executed\n"; ?>
based on qmrBg
Output for 5.6.38 - 7.3.0rc3
Uncaught exception: Uncaught Exception