3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = "meno go you to from"; $regexoo = array('to','go'); $text =str_replace($regexoo, '***', $url); echo $text; echo "<hr><br>"; $str = "first base baseball for all"; $pattern = array('/\b(base|all)\b/i'); $str = preg_replace($pattern, "FOUND", $str); echo $str;
based on MrF8p
Output for 4.3.0 - 7.2.0
meno *** you *** from<hr><br>first FOUND baseball for FOUND