3v4l.org

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