3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('apple', 'banana', 'carrot'); $i = 0; foreach($arr as $val) { if($val == 'banana') { continue; } else { echo $val . $i; } $i++; }
Output for 4.3.0 - 7.1.0
apple0carrot1