3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array=Array ( [0] => Array ( [0] => 01-siena-rosso-new.jpg [1] => Siena Rosso ) [1] => Array ( [0] => 02-siena-noce-new.jpg [1] => Siena Noce ) [2] => Array ( [0] => 03-zloty-dab.jpg [1] => Złoty Dąb ) ) foreach ($array as $select) { foreach ($select as $opt) { echo $opt } }
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '.' in /in/fh0Ok on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[', expecting ')' in /in/fh0Ok on line 8
Process exited with code 255.