3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function up(&$text) { $text = strtoupper($text); } $array = array("hi", "bye", "how", "bY", array("test", "trial", array("hover"))); array_walk_recursive($array, 'up'); print_r($array); ?>
based on kXkC2
Output for 5.0.0 - 7.2.0
Array ( [0] => HI [1] => BYE [2] => HOW [3] => BY [4] => Array ( [0] => TEST [1] => TRIAL [2] => Array ( [0] => HOVER ) ) )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_walk_recursive() in /in/UXZqm on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_walk_recursive() in /in/UXZqm on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_walk_recursive() in /in/UXZqm on line 6