3v4l.org

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