3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( 'leg1'=>'1', 'leg2'=>'2', 'leg3'=>'3', 'leg4'=>'4', 'leg5'=>'5'); while($current = current($a)) { echo $current . "... "; $next = next($a); $nextnext = next($a); echo "<br>".$next; echo "<br>".$nextnext; }
based on IGCXW
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
1... <br>2<br>33... <br>4<br>55... <br><br>