3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function cleaner($url) { $U = explode(' ',$url); $W =array(); foreach ($U as $k => $u) { if (stristr($u,'http') || (count(explode('.',$u)) > 1)) { unset($U[$k]); return cleaner( implode(' ',$U)); } } return implode(' ',$U); } $url = "Here is another funny site lucasg@google.com"; echo "Cleaned: " . cleaner($url);
based on 7nFFS
Output for 4.3.0 - 7.1.0
Cleaned: Here is another funny site