3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array ("a", "b", "c", "d", "e", "f"); $array2 = array_slice($array1, -3); foreach ( $array2 as $val ) { print "$val "; }
Output for 4.3.0 - 7.1.0
d e f