3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a[1] = 'lolol'; $a[2] = '1l1l1l'; $a[3] = '<p>dasdsa</p>'; $a[4] = 'assa"".**&'; function protect(){ addslashes($a); array_map("strip_tags",$a); } foreach($a as $k => $v){ echo $k,$v; } return $a;
Output for 4.3.0 - 7.1.0
1lolol21l1l1l3<p>dasdsa</p>4assa"".**&