3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('H','e','l','l','o'); $arraySize = count($array); $bufferArray = array(); for ($i = $arraySize - 1; $i >= 0; $i--) { $bufferArray[] = $array[$i]; } print_r($bufferArray);
Output for 4.3.0 - 7.1.0
Array ( [0] => o [1] => l [2] => l [3] => e [4] => H )