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 )" var_dump( array_slice( $movie, 1, 2 ) );
based on gpMSA
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { ["director"]=> string(16) "Alfred Hitchcock" ["year"]=> int(1954) }