3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $transport = array('foot', 'bike', 'car', 'plane'); $i=0; while (list(, $val)=each($transport)) { print $val; if($i==0) {$transport[]='merce';$i=1;} }
Output for 4.3.0 - 7.1.0
footbikecarplanemerce