3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Here is another funny site here we.Go to the"; $string = preg_replace("/(^¦\s)(http:\/\/)?(www\.)?[\.0-9a-zA-Z\-_~]+\.(com¦net¦org¦info¦name¦biz¦.+\.\w\w)((\/)?[0-9a-zA-Z\.\-_~#]+)?\b/ie","",$string); echo "Cleaned: " . $string;

preferences:
42.34 ms | 402 KiB | 5 Q