3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $msg = 'grjqgbqgrqg0 38975893240- http://www.gg.pl/afa31f312u34b151j5b1598139189'; $adNr = preg_replace_callback('#http://[^\s]+#', function($ma) { if (substr($ma[0], 0, 17) !== 'http://www.gg.pl/') { return $ma[0]; } }, $msg); echo $adNr;
based on Pfl3B
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0rc3
grjqgbqgrqg0 38975893240-