3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.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
Output for hhvm-3.10.0 - 3.12.0
Warning: ctype_digit() expects exactly 1 parameter, 2 given Warning: ctype_digit() expects exactly 1 parameter, 2 given Warning: ctype_digit() expects exactly 1 parameter, 2 given NULL Warning: ctype_digit() expects exactly 1 parameter, 2 given Warning: ctype_digit() expects exactly 1 parameter, 2 given Warning: ctype_digit() expects exactly 1 parameter, 2 given NULL