3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST[1] = 'lolol'; $_POST[2] = '1l1l1l'; $_POST[3] = '<p></p>'; $_POST[4] = '*.*""'; function protect(){ addslashes($_POST); array_walk("strip_tags",$_POST); } foreach($_POST as $k => $v){ echo $k,$v; } return $_POST;
Output for 8.1.23 - 8.1.28, 8.2.10 - 8.2.18, 8.3.0 - 8.3.6
1lolol21l1l1l3<p></p>4*.*""
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.29
Fatal error: Only variables can be passed by reference in /in/PQOZo on line 10
Process exited with code 255.

preferences:
83.67 ms | 402 KiB | 86 Q