3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '#heavy / machine gun #test'; preg_match('/\b\#\w\w+/', $string, $matches); print_r($matches);

preferences:
45.54 ms | 402 KiB | 5 Q