3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dom = new DOMDocument(); @$dom->loadHTML('<html><div class="ipc-inline-list "><ul class="ipc-inline "><li>1</li><li>2</li><li>3</li></ol</div></html>'); $finder = new DomXPath($dom); $class_ops = 'ipc-inline-list '; $class_opp = 'ipc-inline '; $node = $finder->query("//div[@class='$class_ops']//ul[@class='$class_opp']/li"); foreach ($node as $index => $t) { echo $t->textContent.", "; }
Output for git.master, git.master_jit, rfc.property-hooks
1, 2, 3,

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:
48.11 ms | 1249 KiB | 4 Q