3v4l.org

run code in 300+ PHP versions simultaneously
<?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/At6cq on line 46
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end in /in/At6cq on line 46
Process exited with code 255.

preferences:
177.15 ms | 1395 KiB | 56 Q