3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=Array ( [0] => Array ( [0] => "2"; [1] => "22"; ) [1] => Array ( [0] => "33"; [1] => "333"; ) [2] => Array ( [0] => "55"; [1] => "777"; ) ); foreach ($array as $select) { foreach ($select as $opt) { echo $opt } }
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected ';', expecting ')' in /in/hp0Aj on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[', expecting ')' in /in/hp0Aj on line 8
Process exited with code 255.

preferences:
187.88 ms | 1394 KiB | 61 Q