3v4l.org

run code in 300+ PHP versions simultaneously
<?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]));

preferences:
54.41 ms | 402 KiB | 5 Q