3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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; }
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in /in/tsuI2 on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.25
Parse error: syntax error, unexpected '[' in /in/tsuI2 on line 2
Process exited with code 255.