3v4l.org

run code in 500+ PHP versions simultaneously
<?php $replacer = 'href="https://example.net"'; $homepage = preg_replace_callback('/<body.*?>(.*)<\/body>/', function($matches) use($replacer) { return preg_replace("/(?<=href=(\"|'))[^\"']+(?=(\"|'))/",$replacer,$matches[0]); },'<body><a class="attribute" href="https://mother.com"/> <a class="attribute" href="https://mothers.com"></a></body>'); echo $homepage;
Output for rfc.property-hooks, git.master, git.master_jit
<body><a class="attribute" href="href="https://example.net""/> <a class="attribute" href="href="https://example.net""></a></body>

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:
48.04 ms | 1284 KiB | 4 Q