3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '<div id="ctl00_Main_treeCategories"> <table> <tbody> <tr> <td><a id="ctl00_Main_treeCategoriesn0">Online Catalogus</a></td> </tr> </tbody> </table> <div id="ctl00_Main_treeCategoriesn0Nodes" style="display:block;"> <table cellpadding="0" cellspacing="0" style="border-width:0;"> <tbody> <tr> <td> <div style="width:20px;height:1px"></div> </td> <td> <a id="ctl00_Main_treeCategoriesn1">Dakraam yes</a> </td> </tr> </tbody> </table> <div id="ctl00_Main_treeCategoriesn1Nodes" style="display:block;"> <table cellpadding="0" cellspacing="0" style="border-width:0;"> <tbody> <tr> <td><div style="width:20px;height:1px"></div></td> <td><div style="width:20px;height:1px"></div></td> <td></td> <td class="treeNode ctl00_Main_treeCategories_2"><a class="ctl00_Main_treeCategories_0 treeNode ctl00_Main_treeCategories_1">Dakraam Duette® &amp; Plissé Saaaaahade no</a></td> </tr> </tbody> </table> </div> <table cellpadding="0" cellspacing="0" style="border-width:0;"> <tbody><tr> <td><div style="width:20px;height:1px"></div></td> <td></td> <td class="treeNode ctl00_Main_treeCategories_2" style="white-space:nowrap;"> <a class="ctl00_Main_treeCategories_0 treeNode ctl00_Main_treeCategories_1">Duette® Fixé &amp; Plissé Shadeeeee yes</a> </td> </tr> </tbody> </table> </div>'; $doc = new DOMDocument(); @$doc->loadHTML($a); $finder = new DomXPath($doc); $nodes = $finder->query("//*[contains(@id, \"ctl00_Main_treeCategories\")]/div[not(@id=\"ctl00_Main_treeCategoriesn1Nodes\")]/table"); ?> <pre> <?php foreach ($nodes as $node) { print_r($node->nodeValue); }
Output for git.master, git.master_jit, rfc.property-hooks
<pre> Dakraam yes Duette® Fixé & Plissé Shadeeeee yes

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:
120.21 ms | 406 KiB | 5 Q