3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string="@smn and @someone are web developers"; preg_match_all('/(?<!\w)@\w+/',$string,$matches); print_r($matches[0]);

preferences:
50.65 ms | 402 KiB | 5 Q