3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $get='ge/t'; $post='po/st'; $co='a'; $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); } } } 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/B1uVH on line 9 Warning: Invalid argument supplied for foreach() in /in/B1uVH on line 9 Warning: Invalid argument supplied for foreach() in /in/B1uVH on line 9 Warning: Invalid argument supplied for foreach() in /in/B1uVH on line 9