3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Log { public static function enableHandler() { set_exception_handler(['Log', '_handleException']); } protected static function _handleException(Throwable $exception) { } } Log::enableHandler(); throw Exception();

preferences:
23.89 ms | 404 KiB | 5 Q