3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "demo link edno www.abv.bg link 2 http://abv123.bg/"; $reg_exUrl = "/((http|https|ftp|ftps)\:\/\/|(www)\.)[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/"; if(preg_match($reg_exUrl, $text, $url)) { $text = preg_replace($reg_exUrl, '<a href="'.$url[0].'" target="_blank">'.$url[0].'</a> ', $text); } echo $text;
Output for git.master, git.master_jit, rfc.property-hooks
demo link edno <a href="www.abv.bg" target="_blank">www.abv.bg</a> link 2 <a href="www.abv.bg" target="_blank">www.abv.bg</a>

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:
56.82 ms | 401 KiB | 8 Q