3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '~<a\s*(.*)\>(.*)</a>~'; $subject = '<a href="#">hello</a> <abbr href="#">FYI</abbr> <a title="goodbye">later</a>'; preg_match_all($pattern, $subject, $matches); print_r($matches[2]);

preferences:
55.77 ms | 402 KiB | 5 Q