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 = array('/\b(base|all|first)\b/i',); $str = preg_replace($pattern, "FOUND", $str); echo $str;

preferences:
36.62 ms | 402 KiB | 5 Q