3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $numbers = array(5, 6, 7, 8); end($numbers); while (key($numbers)) { echo current($numbers); prev($numbers); } ?>
Output for 4.3.0 - 7.1.0
876