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);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/FromI:3 Stack trace: #0 {main} thrown in /in/FromI on line 3
Process exited with code 255.

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:
46.03 ms | 401 KiB | 8 Q