3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('H','e','l','l','l'); $arraySize = count($array); $bufferArray = array(); for ($i = $arraySize; $i >= 0; $i--) { $bufferArray[] = $array[$i]; } print_r($bufferArray);
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined offset: 5 in /in/fMgb8 on line 8 Array ( [0] => [1] => l [2] => l [3] => l [4] => e [5] => H )
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined index: 5 in /in/fMgb8 on line 8 Array ( [0] => [1] => l [2] => l [3] => l [4] => e [5] => H )
Output for 4.3.0 - 5.2.17
Notice: Undefined offset: 5 in /in/fMgb8 on line 8 Array ( [0] => [1] => l [2] => l [3] => l [4] => e [5] => H )