3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c[]=array('1'); $c[]=array('2'); $a= "1"; $b= (int)$a; echo $c[$b]; print_r($c)
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected end of file in 7P5bM on line 8
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected $end in /in/nSICS on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected $end in 7P5bM on line 8
Process exited with code 255.

preferences:
167.98 ms | 1395 KiB | 49 Q