3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = array('foo', 'bar', 'boom'); foreach ($input as $row) { echo $row, "\n"; echo 'N: ', next($input), "\n"; }
Output for 7.0.0 - 7.2.0
foo N: bar bar N: boom boom N:
Output for 5.3.19 - 5.6.28
foo N: boom bar N: boom N: