3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $route = array('product', '1306','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);
based on 0CBEu
Output for 4.3.0 - 7.1.0
string(7) "product" <br>string(4) "1306" <br>string(2) "37" <br>bool(false) <br>bool(false) <br>