3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urlRegex = '#(^|\\b)https?:\/\/[\w.?;:\)\)"=&_/\#@]+#'; $text = 'example url [http://223.255.255.254] blabhablha'; $text = preg_replace($urlRegex, '', $text); print("text is $text \n");

preferences:
50.84 ms | 402 KiB | 5 Q