3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <VehicleDescription xmlns="urn:description7b.services.chrome.com" country="US" language="en" modelYear="2008" bestMakeName="Audi" bestModelName="S4" bestStyleName="5dr Avant Wgn"> <responseStatus responseCode="Successful" description="Successful"/> <vinDescription vin="WAUUL78E38A092113" modelYear="2008" division="Audi" modelName="S4" styleName="5dr Avant Wgn" bodyType="Wagon 4 Dr." drivingWheels="AWD" builddata="no"> <WorldManufacturerIdentifier>Germany Audi Nsu</WorldManufacturerIdentifier> <restraintTypes> <group id="9">Safety</group> <header id="38">Air Bag - Frontal</header> <category id="1001">Driver Air Bag</category> </restraintTypes> <restraintTypes> <group id="9">Safety</group> <header id="38">Air Bag - Frontal</header> <category id="1002">Passenger Air Bag</category> </restraintTypes> <restraintTypes> <group id="9">Safety</group> <header id="39">Air Bag - Side</header> <category id="1005">Front Side Air Bag</category> </restraintTypes> <restraintTypes> <group id="9">Safety</group> <header id="39">Air Bag - Side</header> <category id="1007">Front Head Air Bag</category> </restraintTypes> <restraintTypes> <group id="9">Safety</group> <header id="39">Air Bag - Side</header> <category id="1008">Rear Head Air Bag</category> </restraintTypes> <marketClass id="53">Small Wagon</marketClass> </vinDescription> </VehicleDescription> </S:Body></S:Envelope>'; $dom = new DOMDocument(); $dom->loadXML($xml); $node = $dom->getElementsByTagName('VehicleDescription')->item(0); echo $dom->saveXml($node); // outputs xml without envelope and body echo "\n-------------------\n"; $id = $dom->getElementsByTagName('WorldManufacturerIdentifier')->item(0); echo $id->textContent;
Output for git.master, git.master_jit, rfc.property-hooks
<VehicleDescription xmlns="urn:description7b.services.chrome.com" country="US" language="en" modelYear="2008" bestMakeName="Audi" bestModelName="S4" bestStyleName="5dr Avant Wgn"> <responseStatus responseCode="Successful" description="Successful"/> <vinDescription vin="WAUUL78E38A092113" modelYear="2008" division="Audi" modelName="S4" styleName="5dr Avant Wgn" bodyType="Wagon 4 Dr." drivingWheels="AWD" builddata="no"> <WorldManufacturerIdentifier>Germany Audi Nsu</WorldManufacturerIdentifier> <restraintTypes> <group id="9">Safety</group> <header id="38">Air Bag - Frontal</header> <category id="1001">Driver Air Bag</category> </restraintTypes> <restraintTypes> <group id="9">Safety</group> <header id="38">Air Bag - Frontal</header> <category id="1002">Passenger Air Bag</category> </restraintTypes> <restraintTypes> <group id="9">Safety</group> <header id="39">Air Bag - Side</header> <category id="1005">Front Side Air Bag</category> </restraintTypes> <restraintTypes> <group id="9">Safety</group> <header id="39">Air Bag - Side</header> <category id="1007">Front Head Air Bag</category> </restraintTypes> <restraintTypes> <group id="9">Safety</group> <header id="39">Air Bag - Side</header> <category id="1008">Rear Head Air Bag</category> </restraintTypes> <marketClass id="53">Small Wagon</marketClass> </vinDescription> </VehicleDescription> ------------------- Germany Audi Nsu

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:
168.16 ms | 411 KiB | 5 Q