3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "mama"; $array = array ( 1 => "a", 2 => "b", 3=> "c", ); $andra = array( 1=>12, 3=>14); $andra[]=56; $nr=count($array); for($i=1;$i<$nr;$i++){ echo "eu si tu : {$array[$i]}\n"; } var_dump($array); ?>
Output for 4.3.0 - 7.1.0
mamaeu si tu : a eu si tu : b array(3) { [1]=> string(1) "a" [2]=> string(1) "b" [3]=> string(1) "c" }