3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string= "Went for an awesome bike"; echo $string . "</br></br>"; preg_match_all('/#(\w+)/',$string, $matches); if ( count( $matches[1]) != 0) { foreach ($matches[1] as $tag) { echo $tag . "</br></br>"; } } else { echo "There are no tags here!!"; }

preferences:
64.09 ms | 402 KiB | 5 Q