3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '<a href="http://www.google.com/" class=l2>Go to Google!</a>'; preg_match_all('/<a href="([^"]+)" class=l.+?>([^<]+)<\/a>/', $string, $results); var_dump( $results); for( $i = 0; $j < count( $results[1]); $i++) echo $results[1][$i] . ' ' . $results[2][$i];