3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $vals = array('3','4','5'); var_dump(array_reduce($vals, 'ctype_digit', false)); var_dump(array_reduce($vals, 'ctype_digit', true));
Output for 4.3.0 - 7.2.0
Warning: ctype_digit() expects exactly 1 parameter, 2 given in /in/08kmi on line 4 Warning: ctype_digit() expects exactly 1 parameter, 2 given in /in/08kmi on line 4 Warning: ctype_digit() expects exactly 1 parameter, 2 given in /in/08kmi on line 4 NULL Warning: ctype_digit() expects exactly 1 parameter, 2 given in /in/08kmi on line 6 Warning: ctype_digit() expects exactly 1 parameter, 2 given in /in/08kmi on line 6 Warning: ctype_digit() expects exactly 1 parameter, 2 given in /in/08kmi on line 6 NULL