3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $msg = 'grjqgbqgrqg0 38975893240- http://www.gg.pl/afa31f312u34b151j5b1598139189 245673256786746545678987654'; $adNr = preg_replace('#http://www.gg.pl/[^\s]+#', 'cutted', $msg); echo $adNr;
based on 3ffoT
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0rc3
grjqgbqgrqg0 38975893240- cutted 245673256786746545678987654