3v4l.org

run code in 300+ PHP versions simultaneously
<table border="1"> <tr> <th>Marca</th> <th>Modelo</th> </tr> <?php libxml_use_internal_errors(true); $html = new DOMDocument(); $url = "http://pt.bca-europe.com/SearchVehicle/SearchVehicleResults/?searchToken=null&currentPage=1&pageSize=200&sortOrder=TimeRemaining&saleId=00000000-0000-0000-0000-000000000000&saleCal=False&levelOfDetail=Detail&_=1385046541960#"; $html->loadHtmlFile($url); $xpath = new DOMXPath($html); $marcas = $xpath->query("//div[@id='VehicleResults']/div[@class='AspNet-GridView']/table/tbody/tr/td[@class='ConcatenatedField4']/span"); foreach($marcas as $marca) { $make = $xpath->query("./span[@class='Value Make']", $marca)->item(0)->textContent; $model = $xpath->query("./span[@class='Value Model']", $marca)->item(0)->textContent; echo "<tr><td>$make</td><td>$model</td></tr>\n"; } ?> </table>
Output for git.master, git.master_jit, rfc.property-hooks
<table border="1"> <tr> <th>Marca</th> <th>Modelo</th> </tr> Warning: DOMDocument::loadHTMLFile(): php_network_getaddresses: getaddrinfo for pt.bca-europe.com failed: System error in /in/bD0kj on line 10 Warning: DOMDocument::loadHTMLFile(http://pt.bca-europe.com/SearchVehicle/SearchVehicleResults/?searchToken=null&currentPage=1&pageSize=200&sortOrder=TimeRemaining&saleId=00000000-0000-0000-0000-000000000000&saleCal=False&levelOfDetail=Detail&_=1385046541960#): Failed to open stream: php_network_getaddresses: getaddrinfo for pt.bca-europe.com failed: System error in /in/bD0kj on line 10 </table>

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:
68.99 ms | 402 KiB | 8 Q