3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $c[]=array('1'); $c[]=array('2'); $a= 0; $b= (int)$a; echo $c[$b]; print_r($c);
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/7A8H1 on line 6 ArrayArray ( [0] => Array ( [0] => 1 ) [1] => Array ( [0] => 2 ) )
Output for 4.3.0 - 5.3.29
ArrayArray ( [0] => Array ( [0] => 1 ) [1] => Array ( [0] => 2 ) )