3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function() { echo "A\n"; f(1); echo "B\n"; }); eval('function f($x): void { return $x; }');
Output for git.master, git.master_jit
Fatal error: A void function must not return a value in /in/XMg3k(8) : eval()'d code on line 1 A
Process exited with code 139.
Output for rfc.property-hooks
Fatal error: A void function must not return a value in /in/XMg3k(8) : eval()'d code on line 1 A Fatal error: Uncaught Error: Call to undefined function f() in /in/XMg3k:5 Stack trace: #0 [internal function]: {closure}() #1 {main} thrown in /in/XMg3k on line 5
Process exited with code 255.

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:
129.34 ms | 407 KiB | 5 Q