3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $route = array('product', '1306','37'); var_dump(current($route)); next($route); var_dump(current($route)); next($route); var_dump(current($route)); next($route); var_dump(current($route)); next($route); var_dump(current($route)); next($route);
based on umJp7
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(7) "product" string(4) "1306" string(2) "37" bool(false) bool(false)