3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a =[[1],[2],[2],[4],[5],[5],[3]]; Foreach($a as $b){ Echo $b[0]. "\n"; If(next($a)[0] != $b[0]) echo "\n"; }
Output for git.master, git.master_jit
1 2 2 4 5 5 3 Warning: Trying to access array offset on value of type bool in /in/VSJeQ on line 7
Output for rfc.property-hooks
1 2 2 4 5 5 3 Warning: Trying to access array offset on false in /in/VSJeQ on line 7

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