3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = <<<POST wow, that film was #hilarious I #love turtles #YouTube has funny videos that I #love <3 POST; preg_match_all('/#(\w+)\b/', $string, $matches); var_dump(array_count_values($matches[1]));
based on m95Xl
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.3.0rc3
array(3) { ["hilarious"]=> int(1) ["love"]=> int(2) ["YouTube"]=> int(1) }