run code in 150+ php & hhvm versions
Bugs & Features
<?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);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
If you search [redacted URL] for an unspecified color, you will be content with the answer.