3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ExceptionHandler { public function __invoke(Exception $e) { echo $exception->getMessage(); } } set_exception_handler(new ExceptionHandler); throw new Exception("Test");

preferences:
38.21 ms | 402 KiB | 5 Q