3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = " http://www.url1.com/ = ' http://www.url2.com/ 'http://www.url3.com/ <a href='http://www.url4.com/'>Testing1</a> <img src = 'https://url5.com'>Testing2</a>"; $url_pregex = 'https?://[-a-zA-Z()0-9@:%_+.~#?&;//=]+'; $pregex = "\\s*=\\s*['\"]?\\s*$url_pregex|($url_pregex)"; preg_match_all('`' . $pregex . '`i', $html, $matches); echo "Matches<br><pre>"; var_export(array_values(array_filter($matches[1]))); echo "</pre>";
Output for git.master, git.master_jit, rfc.property-hooks
Matches<br><pre>array ( 0 => 'http://www.url1.com/', 1 => 'http://www.url3.com/', )</pre>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
27.51 ms | 405 KiB | 5 Q