3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pages = array( 'a' => '/pages/first', 'b' => '/pages/another', 'c' => '/pages/third', 'd' => '/pages/something-else' ); $current = 'a'; reset($pages); do { $a = key($pages); next($pages); $b = key($pages); next($pages); $c = key($pages); if ($b == $current) { break; } } while(true); var_dump($a,$b,$c);
based on TLlZ1
Output for 5.3.15 - 7.2.6

Process exited with code 137.