3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "diller"; $disallowed = array("dont want this","neither this","nono"); $result = preg_replace($disallowed, "", $input); echo $result; ?>

preferences:
39.09 ms | 402 KiB | 5 Q