3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Warning: array_slice() expects at least 2 parameters, 1 given in /in/YjkPX on line 3 NULL
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.2.5
Warning: Wrong parameter count for array_slice() in /in/YjkPX on line 3 NULL