3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = range(1,20); $b = array_slice($a, -5); print_r($b);
Output for 4.3.0 - 7.1.0
Array ( [0] => 16 [1] => 17 [2] => 18 [3] => 19 [4] => 20 )