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[1]);

preferences:
83.23 ms | 402 KiB | 5 Q