3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $movie = array( "title" => "Rear Window", "director" => "Alfred Hitchcock", "year" => 1954, "minutes" => 112 ); // Displays "Array ( [director] => Alfred Hitchcock [year] => 1954 )" print_r( array_slice( $movie, 1, 2 ) );
based on uU0Ra
Output for 4.3.0 - 7.1.0
Array ( [director] => Alfred Hitchcock [year] => 1954 )