3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [1, 2, 3, 4, 5, 6, 7]; echo key($arr).PHP_EOL; next($arr); echo key($arr).PHP_EOL;
Output for 5.5.0 - 7.3.0rc3
0 1