3v4l.org

run code in 200+ 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 7.2.0 - 7.2.6
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/4mbZT on line 5 footbikecarplanemerce
Output for 4.3.0 - 7.1.20
footbikecarplanemerce