3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_slice(array('key1' => 100, 'key2' => 1000), 1, null, true));
Output for 5.2.4 - 7.1.0
array(1) { ["key2"]=> int(1000) }
Output for 5.0.2 - 5.2.3
array(0) { }
Output for 4.3.0 - 5.0.1
Warning: Wrong parameter count for array_slice() in /in/quiTt on line 3 NULL