3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = (function () { [ ...($r = (function () { try { yield $a => 0; } finally { return []; } })()), ]; })()[0];
Output for git.master
Warning: Undefined variable $a in /in/8SDGE on line 6 Warning: Undefined variable $x�� in /in/8SDGE on line 12 Warning: Trying to access array offset on null in /in/8SDGE on line 12
Output for git.master_jit
Warning: Undefined variable $a in /in/8SDGE on line 6 Warning: Undefined variable $x�}� in /in/8SDGE on line 12 Warning: Trying to access array offset on null in /in/8SDGE on line 12
Output for rfc.property-hooks
Warning: Undefined variable $a in /in/8SDGE on line 6 Fatal error: Uncaught Error: Keys must be of type int|string during array unpacking in /in/8SDGE:4 Stack trace: #0 /in/8SDGE(12): {closure}() #1 {main} thrown in /in/8SDGE on line 4
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:
29.51 ms | 408 KiB | 5 Q