3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "Hello, World!"; $a=array('one', 'two', 'three'); $b=array_slice($a,0,null,true); print_r($b);
Output for 5.2.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Hello, World!Array ( [0] => one [1] => two [2] => three )
Output for 5.0.2 - 5.2.3
Hello, World!Array ( )
Output for 4.3.0 - 5.0.1
Hello, World! Warning: Wrong parameter count for array_slice() in /in/cmPE5 on line 5