3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = ' <a>some stuff we don not want</a> <table cellpadding="2" cellspacing="1" bgcolor="#A0A0A0"> </table> <table id="anothertable"> </table>'; $dom = new DOMDocument(); $dom->loadHTML($input); foreach ($dom->getElementsByTagName('table') as $element) { echo "here"; echo $element->nodeValue; }
Output for git.master, git.master_jit, rfc.property-hooks
herehere

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