3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hashtag = '#আয়াতুল_কুরসি'; preg_match('/#[\w\p{M}]+/u', $hashtag, $matches); print_r($matches);

preferences:
28.39 ms | 405 KiB | 5 Q