3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //Enter your code here, enjoy! $array = array(); $array[] = "usernaam1"; $array[] = "usernaam2"; $array[] = "usernaam3"; $array[] = "usernaam4"; foreach( $array as $key => $value ){ echo $key."\t=>\t".$value."\n"; }
Output for 4.3.0 - 7.1.7
0 => usernaam1 1 => usernaam2 2 => usernaam3 3 => usernaam4