3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = file_get_contents("https://www.sdi.gov.in/en-US/Pages/SDISHome.aspx"); $html = tidy_repair_string($html); $doc = new DomDocument(); $doc->loadHtml($html); $xpath = new DomXPath($doc); // Now query the document: foreach ($xpath->query('//table[@class="pricing"]/th') as $node) { echo $node, "\n"; }

preferences:
42.3 ms | 402 KiB | 5 Q