3v4l.org

run code in 300+ PHP versions simultaneously
<?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 = '/\b(base|all)\b/i'; $str = preg_replace($pattern, "FOUND", $str); echo $str;

preferences:
49.96 ms | 402 KiB | 5 Q