3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function stripslashes_array(&$arr) { foreach ($arr as $k => &$v) { $nk = stripslashes($k); if ($nk != $k) { $arr[$nk] = &$v; unset($arr[$k]); } if (is_array($v)) { stripslashes_array($v); } else { $arr[$nk] = stripslashes($v); echo $v; } } } } stripslashes_array('Yousef\\\'s'); stripslashes_array('\"PHP.net\"'); stripslashes_array('user\\\'s'); stripslashes_array('user\\\'s'); ?>
Output for 5.3.0 - 5.4.20
Parse error: syntax error, unexpected '}' in /in/2Yhun on line 19
Process exited with code 255.