3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<img src="https://link.com"> https://link.com<img src=\'https://link.com\'>'; $acturl = '~(?<!src=["\'])(?:(https?)://([^\s<]+)|(www\.[^\s<]+?\.[^\s<]+))(?<![\.,:])~i'; $content = preg_replace($acturl, '<a href="$0">$0</a>', $content); echo $content;
Output for git.master_jit, git.master, rfc.property-hooks
<img src="https://link.com"> <a href="https://link.com">https://link.com</a><img src='https://link.com'>

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:
92 ms | 405 KiB | 5 Q