3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_POST[1] = 'lolol'; $_POST[2] = '1l1l1l'; $_POST[3] = '<p></p>'; $_POST[4] = '''; function protect(){ addslashes($_POST); array_map("strip_tags",array_key($_POST)); } foreach($_POST as $k => $v){ echo $k,$v; } return $_POST;
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '';' (T_ENCAPSED_AND_WHITESPACE) in /in/rfpb7 on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/rfpb7 on line 6
Process exited with code 255.