3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_filter(array(1,2,3), null, 5));
based on 1pf5t
Output for 5.6.8 - 7.2.0
Warning: array_filter() expects parameter 2 to be a valid callback, no array or string given in /in/VL2D3 on line 3 NULL
Output for 5.3.0 - 5.5.35
Warning: array_filter() expects at most 2 parameters, 3 given in /in/VL2D3 on line 3 NULL
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for array_filter() in /in/VL2D3 on line 3 NULL