3v4l.org

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

preferences:
43.8 ms | 402 KiB | 5 Q