3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "The text you want to filter goes here. http://google.com, https://www.youtube.com/watch?v=K_m7NEDMrV0,https://instagram.com/hellow/"; preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $string, $match); echo "<pre>"; print_r($match[0]); echo "</pre>";
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [0] => http://google.com [1] => https://www.youtube.com/watch?v=K_m7NEDMrV0 [2] => https://instagram.com/hellow/ ) </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:
32.45 ms | 401 KiB | 8 Q