3v4l.org

run code in 300+ PHP versions simultaneously
<?php function errorHandler($errno, $errstr, $errfile, $errline) { print_r(['This invoked custom error handler', $errno, $errstr, $errfile, $errline]); } function errorHandlerWithoutWarnings($errno, $errstr, $errfile, $errline) { print_r(['This invoked custom error handler errorHandlerWithoutWarnings', $errno, $errstr, $errfile, $errline]); } set_error_handler('errorHandler', E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); $a = []; echo $a['fooo']; set_error_handler('errorHandlerWithoutWarnings', E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_WARNING); $a = []; echo $a['fooo'];
Output for git.master, git.master_jit
/bin/php-git-master: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory
Process exited with code 127.
Output for rfc.property-hooks
Array ( [0] => This invoked custom error handler [1] => 2 [2] => Undefined array key "fooo" [3] => /in/u274a [4] => 11 ) Warning: Undefined array key "fooo" in /in/u274a on line 15

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:
56.82 ms | 406 KiB | 5 Q