3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( array_slice(["a","b","c"],0, -1)); ;
based on oE58n
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0rc3
array(2) { [0]=> string(1) "a" [1]=> string(1) "b" }