3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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/RjEDB on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[', expecting ')' in /in/RjEDB on line 8
Process exited with code 255.