3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urlRegex = '#(^|\\b)https?:\/\/[\w.?;:\)"=&_/\#]+#'; $text = 'example url [http://www.example.com/path/index?ATY345=6&index=2#utm=feafet/] blabhablha'; $text = preg_replace($urlRegex, '', $text); print("text is $text \n");

preferences:
40.22 ms | 402 KiB | 5 Q