3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array("te","yes","we","no","1","sdfsdf","Resolved"); $array2 = array("another","no","we","no","0","sdfsdf","Unresolved"); foreach($array1 as $k=>$v){ echo $k.' \n '; }
based on JAkM1
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
0 \n 1 \n 2 \n 3 \n 4 \n 5 \n 6 \n
Output for hhvm-3.10.0

Process exited with code 153.