3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myExceptionHandler (Exception $ex) { throw $ex; } set_exception_handler("myExceptionHandler"); throw new Exception("This should cause a fatal error and this message will be lost");

preferences:
32.96 ms | 402 KiB | 5 Q