3v4l.org

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

preferences:
33.36 ms | 402 KiB | 5 Q