3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php global $get; $get='ge/t'; global $post; $post='po/st'; global $co; $co='a'; global $rec; $rec='rec'; if (get_magic_quotes_gpc()) { $process = array(&$get, &$post, &$co, &$rec); while (list($key, $val) = each($process)) { foreach ($val as $k => $v) { unset($process[$key][$k]); 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 stripslashes($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/i8WCi on line 13 Warning: Invalid argument supplied for foreach() in /in/i8WCi on line 13 Warning: Invalid argument supplied for foreach() in /in/i8WCi on line 13 Warning: Invalid argument supplied for foreach() in /in/i8WCi on line 13