3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string= "Went for an awesome bike ride today! #biking #awesome"; preg_match_all('/#(\w+)/',$string, $matches); foreach ($matches[1] as $tag) { echo $tag + ", "; }

preferences:
34.66 ms | 402 KiB | 5 Q