3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $needle = 'www'; $sentence = 'This www.google.com is the http://www.facebook.com website that https://www.amazon.com make me awesome'; if(preg_match('/\b(' . preg_quote($needle, '/') . '\w+)/', $sentence, $match)){ echo "<pre>"; print_r($match); echo "</pre>"; }
based on 46P3e
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0beta1