3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(array(1=>'a'), array(2=>'b'), array(3=>'c'), array(4=>'d'), array(5=>'f'), array(6=>'g')); while(list($k, $v) = each($a)){ echo $k, $v; }
Output for 5.4.0 - 7.1.7
0 Notice: Array to string conversion in /in/JVihN on line 4 Array1 Notice: Array to string conversion in /in/JVihN on line 4 Array2 Notice: Array to string conversion in /in/JVihN on line 4 Array3 Notice: Array to string conversion in /in/JVihN on line 4 Array4 Notice: Array to string conversion in /in/JVihN on line 4 Array5 Notice: Array to string conversion in /in/JVihN on line 4 Array
Output for 4.3.0 - 5.3.29
0Array1Array2Array3Array4Array5Array