3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array("Foo", "Bar", "Baz", "Wom", "Bat"); print end($array) . "\n"; while($val = prev($array)) { print $val . "\n"; } ?>
based on FtieI
Output for 4.3.0 - 7.2.0
Bat Wom Baz Bar Foo