3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (!function_exists('get_magic_quotes_gpc') || !get_magic_quotes_gpc()) { foreach (['_GET', '_POST', '_REQUEST', '_COOKIE'] as $var) { array_walk_recursive($$var, function (&$value) { $value = addslashes($value); }); } if (version_compare(PHP_VERSION, '5.4.0') < 0) { set_magic_quotes_runtime(true); } }
based on h5rSo
Output for 5.4.0 - 7.2.0
Warning: array_walk_recursive() expects parameter 1 to be array, null given in /in/AWIkh on line 7
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/AWIkh on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/AWIkh on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/AWIkh on line 4
Process exited with code 255.