3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlString = <<<XML <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetDataResponse xmlns="urn:com:esi911:webeoc7:api:1.0"> <GetDataResult> <data> <record dataid="6" county="Fayette County" title="Title goes here" description="Description goes here." status="Inactive" /> <record dataid="5" county="Caldwell County" title="Title goes here" description="Description goes here." status="Inactive" /> <record dataid="4" county="Burnet County" title="Title goes here" description="Description goes here." status="Active" /> <record dataid="2" county="Blanco County" title="Title goes here" description="Description goes here." status="Active" /> <record dataid="1" county="Bastrop County" title="Title goes here" description="Description goes here." status="Active" /> </data> </GetDataResult> </GetDataResponse> </soap:Body> </soap:Envelope> XML; $xml = simplexml_load_string($xmlString); $xml->registerXPathNamespace('urn', 'urn:com:esi911:webeoc7:api:1.0'); $records = $xml->xpath('//urn:record'); echo (string)$records[0]->attributes()->dataid;
Output for git.master, git.master_jit, rfc.property-hooks
6

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:
25.8 ms | 405 KiB | 5 Q