3v4l.org

run code in 300+ PHP versions simultaneously
<?php function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr); } ++$foo; set_error_handler("exception_error_handler"); try { preg_match("/foo(+/", null); echo "+value\n"; } catch (ErrorException $e) { echo "-fail: ", $e->getMessage(), "\n"; } restore_error_handler(); ++$bar;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $foo in /in/lnEDu on line 6 -fail: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated Warning: Undefined variable $bar in /in/lnEDu on line 18

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:
40.25 ms | 401 KiB | 8 Q