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 $v) { count($v) == 3 and list($a, $b, $c) = $v; print $a.'-'.$b.'-'.$c; print_r($v); }
Output for git.master, git.master_jit, rfc.property-hooks
1-2-3Array ( [0] => 1 [1] => 2 [2] => 3 ) 4-5-6Array ( [0] => 4 [1] => 5 [2] => 6 ) 7-8-9Array ( [0] => 7 [1] => 8 [2] => 9 ) 7-8-9Array ( [0] => 0 [1] => 9 ) 7-8-9Array ( [0] => 7 ) 0-1-2Array ( [0] => 0 [1] => 1 [2] => 2 )

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