3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function protect(){ $a[1] = 'lolol'; $a[2] = '1l1l1l'; $a[3] = '<p>dasdsa</p>'; $a[4] = 'assa"".**&'; //addslashes($a); array_map('strip_tags',$a); } protect($a); var_dump($a); return $a;
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Notice: Undefined variable: a in /in/cUNaK on line 15 Notice: Undefined variable: a in /in/cUNaK on line 16 NULL Notice: Undefined variable: a in /in/cUNaK on line 18
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/cUNaK on line 15 Notice: Undefined variable: a in /in/cUNaK on line 16 NULL Notice: Undefined variable: a in /in/cUNaK on line 18