3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = array("a", "b", "c", "d", "e"); $output = array_slice($input, 2, 3); // returns "a", "b", and "c" var_dump($output);
Output for 4.3.0 - 7.1.0
array(3) { [0]=> string(1) "c" [1]=> string(1) "d" [2]=> string(1) "e" }