3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (get_magic_quotes_gpc()) { $process = array('get', 'pst', 'co', 'rec'); while (list($key, $val) = each($process)) { foreach ($val as $k => $v) { if (is_array($v)) { $process[$key][stripslashes($k)] = $v; $process[] = &$process[$key][stripslashes($k)]; } else { $process[$key][stripslashes($k)] = stripslashes($v); echo $process[$key][stripslashes($k)] ; echo $v; } } } unset($process); } ?>
Output for 4.3.11, 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.3.29
Warning: Invalid argument supplied for foreach() in /in/WLmpA on line 5 Warning: Invalid argument supplied for foreach() in /in/WLmpA on line 5 Warning: Invalid argument supplied for foreach() in /in/WLmpA on line 5 Warning: Invalid argument supplied for foreach() in /in/WLmpA on line 5