3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'test"'; $str = trim($keyword); $str = preg_replace("#[&].{2,7}[;]#sim", " ", $str); $str = preg_replace("#[()A°^!\"A§\$%&/{(\[)\]=}?AŽ`,;.:\-_\#'~+*]#", " ", $str); $str = preg_replace("#\s+#sim", " ", $str); echo $str; ?>
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: keyword in /in/rEjEa on line 3
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: keyword in /in/rEjEa on line 3