3v4l.org

run code in 300+ PHP versions simultaneously
<?php $badthings = [ "`", "<", ">", "()"]; $input="Ciao< come va?'"; foreach ($badthings as $key => $badthing) { if((int)strpos($input, $badthing) > -1){ str_replace($badthing, "", $input); } } echo $input; ?>

preferences:
57.88 ms | 402 KiB | 5 Q