3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myException($exception) { echo "<b>Exception:</b> " . $exception->getMessage(); } set_exception_handler('myException'); throw new Exception('Uncaught Exception occurred'); ?>

preferences:
41.44 ms | 402 KiB | 5 Q