3v4l.org

run code in 500+ PHP versions simultaneously
<?php $html = <<<STR <html><body> <a href="http://www.test.org/5521" rel="follow">test1</a><br/> <a href="http://www.test.org/5522" rel="external">test1</a><br/> <a href="http://www.test.org/5523">test1</a> </body></html> STR; $dom = new DOMDocument('1.0', 'UTF-8'); $dom->loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); $links = $dom->getElementsByTagName("a"); foreach($links as $link) { $link->setAttribute('rel', 'nofollow'); } echo $dom->saveHTML();
Output for git.master, git.master_jit, rfc.property-hooks
<html><body> <a href="http://www.test.org/5521" rel="nofollow">test1</a><br> <a href="http://www.test.org/5522" rel="nofollow">test1</a><br> <a href="http://www.test.org/5523" rel="nofollow">test1</a> </body></html>

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:
28.84 ms | 2048 KiB | 4 Q