3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://tools.usps.com/go/TrackConfirmAction!input.action?tRef=qt&tLc=0&tLabels=23120200000035496407'; $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => false, CURLOPT_HEADER => false, )); $html = curl_exec($ch); curl_close($ch); libxml_use_internal_errors(true); $dom = new DOMDocument; $dom->loadHTML($html); $xpath = new DOMXPath($dom); $datetime = $xpath->query('//tbody/tr/td[@class="date-time"]'); var_dump($datetime);

preferences:
50.2 ms | 402 KiB | 5 Q