3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $months = array('jan', 'feb', 'mar', 'apr'); array_push($months,'may'); $output = array_slice($months, 1,2); print_r($output);
Output for 4.3.0 - 7.1.0
Array ( [0] => feb [1] => mar )