3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $urlRegex = '#(^|\\b)https?:\/\/[\w.?;:\)\)"=&_/\#@]+#'; $text = 'example url [http://223.255.255.254] blabhablha'; $text = preg_replace($urlRegex, '', $text); print("text is $text \n");
based on Td6Dk
Output for 5.3.18 - 7.3.0beta1
text is example url [] blabhablha