3v4l.org

run code in 200+ 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",$_POST); } foreach($_POST as $k => $v){ echo $k,$v."<br>"; } return $_POST;
Output for 4.3.0 - 7.2.0
1lolol<br>21l1l1l<br>3<p><p><br>4*.*""<br>