3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $movie = array( 4587 => "Rear Window", 7895 => "Alfred Hitchcock", 12450 => 1954, 1111 => 112 ); // Displays "Array ( [director] => Alfred Hitchcock [year] => 1954 )" var_dump( array_slice( $movie, 1, 2 ) );
based on SHHZ6
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> string(16) "Alfred Hitchcock" [1]=> int(1954) }