3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "I went to the dog park yesterday and saw @dog4 playing with @dog8 and @dog3 drinking water -- poor @dog33."; preg_match_all('/@(\w+)/', $text, $mentions); var_export($mentions[0]);

preferences:
28.23 ms | 405 KiB | 5 Q