3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<a href="http://externalsite.com">external site</a>'; if ( ! preg_match_all( "/(<a.*>)(.*)(<\/a>)/ismU", $content, $outbound_links, PREG_SET_ORDER ) ) { return $content; } var_dump( $outbound_links );

preferences:
61.29 ms | 402 KiB | 5 Q