3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = file_get_contents(""); $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:
44.59 ms | 402 KiB | 5 Q