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) { list($a, $b, $c) = $v; }
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in /in/brEPK on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.25
Parse error: syntax error, unexpected '[' in /in/brEPK on line 2
Process exited with code 255.

preferences:
189.56 ms | 1395 KiB | 49 Q