3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<div> <div id="priceRangeWrapper"> <div id="priceSlider" min="110" max="650"></div> </div> </div>'; $doc = new DOMDocument(); $doc->loadHTML( $str); // Load the HTML string from your post $xpath = new DOMXPath( $doc); $node = $xpath->query( '//div[@id="priceSlider"]')->item(0); // Get the <div> echo $node->getAttribute('min') . " " . $node->getAttribute('max');
Output for git.master, git.master_jit, rfc.property-hooks
110 650

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:
57.4 ms | 405 KiB | 5 Q