3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $domDoc = new DOMDocument; $domDoc->preserveWhiteSpace=false; $domDoc->loadXML(<<<XML <?xml version="1.0" encoding="utf-8"?> <DataSet xmlns="http://firstflight.net/firstflightwebservice/service.asmx"> <xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet"> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="Table"> <xs:complexType> <xs:sequence> <xs:element name="AwbNo" type="xs:string" minOccurs="0"/> <xs:element name="SearchRefNbr" type="xs:string" minOccurs="0"/> <xs:element name="PkpDate" type="xs:string" minOccurs="0"/> <xs:element name="DelvFrom" type="xs:string" minOccurs="0"/> <xs:element name="DelvTo" type="xs:string" minOccurs="0"/> <xs:element name="DelvDate" type="xs:string" minOccurs="0"/> <xs:element name="PktCount" type="xs:decimal" minOccurs="0"/> <xs:element name="PktWeight" type="xs:decimal" minOccurs="0"/> <xs:element name="DlvStatus" type="xs:string" minOccurs="0"/> <xs:element name="DelvRemarks" type="xs:string" minOccurs="0"/> <xs:element name="RTOReasonCode" type="xs:string" minOccurs="0"/> <xs:element name="DelvTime" type="xs:string" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema> <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"> <NewDataSet xmlns=""> <Table diffgr:id="Table1" msdata:rowOrder="0"> <AwbNo>D991L1671573</AwbNo> <PkpDate>03/07/2014</PkpDate> <DelvFrom>Delhi</DelvFrom> <DelvTo>Kolkatta</DelvTo> <DelvDate>08/07/2014</DelvDate> <PktCount>1</PktCount> <PktWeight>0.50</PktWeight> <DlvStatus>UND</DlvStatus> <DelvRemarks>PARTY NOT AVAILABLE</DelvRemarks> <DelvTime xml:space="preserve"> </DelvTime> </Table> </NewDataSet> </diffgr:diffgram> </DataSet> ); //$domDoc->save('config.xml'); echo $domDoc->saveXML();
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected end of file in /in/QuHfp on line 54
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/QuHfp on line 54
Process exited with code 255.