3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a{ function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; } } $t = new a(); $array = array("f\\'oo", "b\\'ar", array("fo\\'o", "b\\'ar")); $array = $t->stripslashes_deep($array); print_r($array); ?>
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_map() expects parameter 1 to be a valid callback, function 'stripslashes_deep' not found or invalid function name in /in/6RKG3 on line 6
Output for hhvm-3.12.0
Warning: array_map() expects parameter 1 to be a valid callback in /in/6RKG3 on line 6
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Warning: array_map() expects parameter 1 to be a valid callback, function 'stripslashes_deep' not found or invalid function name in /in/6FTN6 on line 6
Output for 4.3.2 - 5.2.17
Warning: array_map(): The first argument, 'stripslashes_deep', should be either NULL or a valid callback in /in/6FTN6 on line 6
Output for 4.3.1
Warning: array_map() [http://www.php.net/function.array-map]: The first argument, 'stripslashes_deep', should be either NULL or a valid callback in /in/6FTN6 on line 6
Output for 4.3.0
Warning: array_map() [http://www.php.net/function.array-map]: The first argument, 'stripslashes_deep', should be either NULL or a valid callback in /in/6RKG3 on line 6