3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(3,5,"joseph","blah"); array_walk($arr, 'strtoupper'); print_r($arr);
Output for 5.3.0 - 7.1.0
Warning: strtoupper() expects exactly 1 parameter, 2 given in /in/HVch7 on line 3 Warning: strtoupper() expects exactly 1 parameter, 2 given in /in/HVch7 on line 3 Warning: strtoupper() expects exactly 1 parameter, 2 given in /in/HVch7 on line 3 Warning: strtoupper() expects exactly 1 parameter, 2 given in /in/HVch7 on line 3 Array ( [0] => 3 [1] => 5 [2] => joseph [3] => blah )
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for strtoupper() in /in/HVch7 on line 3 Warning: Wrong parameter count for strtoupper() in /in/HVch7 on line 3 Warning: Wrong parameter count for strtoupper() in /in/HVch7 on line 3 Warning: Wrong parameter count for strtoupper() in /in/HVch7 on line 3 Array ( [0] => 3 [1] => 5 [2] => joseph [3] => blah )