3v4l.org

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