3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
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 hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.3.29
0Array1Array2Array3Array4Array5Array