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",$_POST); } foreach($_POST as $k => $v){ echo $k,$v."<br>"; } return $_POST;
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
1lolol<br>21l1l1l<br>3<p><p><br>4*.*""<br>
Output for hhvm-3.10.0

Process exited with code 153.