3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?phparray $route = array( 0 => 'product', 1 => '1306', 2 => '37', ); var_dump(current($route)); echo '<br>'; next($route); var_dump(current($route)); echo '<br>'; next($route); var_dump(current($route)); echo '<br>'; next($route); var_dump(current($route)); echo '<br>'; next($route); var_dump(current($route)); echo '<br>'; next($route);
Output for 5.4.0 - 5.4.32
<?phparray $route = array( 0 => 'product', 1 => '1306', 2 => '37', ); var_dump(current($route)); echo '<br>'; next($route); var_dump(current($route)); echo '<br>'; next($route); var_dump(current($route)); echo '<br>'; next($route); var_dump(current($route)); echo '<br>'; next($route); var_dump(current($route)); echo '<br>'; next($route);