3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array("value1","value2","value3"); for($i=0;$i<count($array);$i++){ echo("Element $i contains $array[$i]<br/>"); }
Output for 4.3.0 - 7.1.10
Element 0 contains value1<br/>Element 1 contains value2<br/>Element 2 contains value3<br/>