3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*E_ERROR E_CORE_ERROR E_CORE_WARNING E_COMPILE_ERROR */ function exception_error_handler($errno, $errstr, $errfile, $errline) { var_dump($errstr); } set_error_handler("exception_error_handler", error_reporting()); function shutDownFunction() { echo 'as'; $error = error_get_last(); if ($error['type'] == 1) { //do your stuff } } register_shutdown_function('shutdownFunction'); function f() { return 'Hello world'; } if( empty( f() ) ) { // do something }

preferences:
34.95 ms | 402 KiB | 5 Q