3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = range(1, 5); var_dump(array_slice($a, 2, null, true));
Output for 5.2.4 - 7.2.0
array(3) { [2]=> int(3) [3]=> int(4) [4]=> int(5) }
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/iDtEn on line 3 NULL