3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $output = "<a href='url' title='post_title'>link_text</a>"; preg_match("/<a(.*?)>(.*?)<\/a>/i", $output, $matches); var_dump($matches);
Output for 4.3.0 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> string(46) "<a href='url' title='post_title'>link_text</a>" [1]=> string(30) " href='url' title='post_title'" [2]=> string(9) "link_text" }