3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = array("a"=>1, "b"=>2, "c"=>3, "d"=>4, "e"=>5); print_r(array_slice($input, -1, 1));
Output for 4.3.0 - 7.1.0
Array ( [e] => 5 )