3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = array('a','b','c'); $out = array_slice($input, 0, -1); print_r($out); array_pop($input); print_r($input);
Output for 4.3.0 - 7.1.0
Array ( [0] => a [1] => b ) Array ( [0] => a [1] => b )