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 - 7.1.0
Hello, World!Array ( [0] => bla/bla [foo] => bar )
Output for 4.3.0 - 5.0.1
Hello, World! Warning: Wrong parameter count for array_slice() in /in/0k6oK on line 5