3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $dom->loadHTML(<<<HTML <html> <body> <div>1</div> <div> <div> <div>1</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> <div>6</div> <div> <div> <div> <div> <table> <tbody> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr> <td>HELLO</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </body> </html> HTML ); $finder = new DOMXPath($dom); $elements = $finder->query('/html/body/div[2]/div[1]/div[7]/div[1]/div/div/table/tbody/tr[6]/td'); echo 'Found ', $elements->count(), ' elements.';
Output for git.master, git.master_jit, rfc.property-hooks
Found 1 elements.

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.29 ms | 405 KiB | 5 Q