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(); print_r(error_get_last()); if ($error['type'] == 1) { //do your stuff } } register_shutdown_function('shutdownFunction'); function f() { return 'Hello world'; } if( empty( f() ) ) { // do something }
Output for git.master, git.master_jit
asstring(51) "Trying to access array offset on value of type null"
Output for rfc.property-hooks
asstring(37) "Trying to access array offset on null"

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.1 ms | 401 KiB | 8 Q