3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1=>"vahid",2=>"arash",3=>"farzam"); foreach($a as $b){ foreach($a as $c){ echo $c } }
Output for 5.3.0 - 5.3.23, 5.4.0 - 5.4.13
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/8Qqbs on line 9
Process exited with code 255.

preferences:
164.85 ms | 1395 KiB | 45 Q