3v4l.org

run code in 500+ PHP versions simultaneously
<?php $html = <<<'HTML' <!DOCTYPE html><html><body> <small>0</small> <small>1</small> <small>2</small> <small>3</small> </body></html> HTML; $dom = new DOMDocument; $dom->loadHTML($html); $nodeArray = iterator_to_array($dom->getElementsByTagName('small')); foreach($nodeArray as $node) { $node->parentNode->removeChild($node); } echo $dom->saveHTML();
Output for rfc.property-hooks, git.master, git.master_jit
<!DOCTYPE html> <html><body> </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:
51.97 ms | 1256 KiB | 4 Q