3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=[[1,2,3],[4,5,6],[7,8,9],[0,9],[7],[0,1,2]]; foreach($array as list($a, $b, $c)) { print $a.'-'.$b.'-'.$c; print_r($v); }
Output for git.master, git.master_jit, rfc.property-hooks
1-2-3 Warning: Undefined variable $v in /in/Nomp2 on line 5 4-5-6 Warning: Undefined variable $v in /in/Nomp2 on line 5 7-8-9 Warning: Undefined variable $v in /in/Nomp2 on line 5 Warning: Undefined array key 2 in /in/Nomp2 on line 3 0-9- Warning: Undefined variable $v in /in/Nomp2 on line 5 Warning: Undefined array key 1 in /in/Nomp2 on line 3 Warning: Undefined array key 2 in /in/Nomp2 on line 3 7-- Warning: Undefined variable $v in /in/Nomp2 on line 5 0-1-2 Warning: Undefined variable $v in /in/Nomp2 on line 5

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.41 ms | 402 KiB | 8 Q