3v4l.org

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