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[0]));

preferences:
34.4 ms | 402 KiB | 5 Q