3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function derp($dont,$show,$these) { (count($args = func_get_args()) > 3) ? var_dump(array_slice($args)) : var_dump('no args'); } derp('dont','show','these','show','these');
Output for 5.2.6 - 7.2.0
Warning: array_slice() expects at least 2 parameters, 1 given in /in/YjkPX on line 3 NULL
Output for 4.3.0 - 5.2.5
Warning: Wrong parameter count for array_slice() in /in/YjkPX on line 3 NULL