3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str="My name's #jeff,what is thy #jojo name?"; preg_match_all("/#\w+/", $str, $matches); print_r($matches[0]); ?>
based on mS3jc
Output for 5.6.0 - 7.3.0alpha1
Array ( [0] => #jeff [1] => #jojo )