3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bad = array('google.com', 'orange', 'satisfied'); $replace = array('[redacted URL]', 'an unspecified color', 'content'); $text = 'If you search google.com for orange, you will be satisfied with the answer.'; echo str_replace($bad, $replace, $text);

preferences:
31.97 ms | 402 KiB | 5 Q