3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Element 0 contains value1<br/>Element 1 contains value2<br/>Element 2 contains value3<br/>
Output for hhvm-3.10.0

Process exited with code 153.