3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstr = '<?xml version="1.0" encoding="utf-8"?><entry xml:base="http://exact.test.fb:8020/services/Exact.Entity.REST.EG/" xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><id>http://exact.test.fb:8020/services/Exact.Entity.REST.EG/MandateAccount(84)</id><category term="Exact.Metadata.Entity.MandateAccount" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /><link rel="edit" title="MandateAccount" href="MandateAccount(84)" /><title /><updated>2014-08-11T10:23:03Z</updated><author><name /></author><content type="application/xml"><m:properties><d:Account m:type="Edm.Guid">58bd69dd-3c41-4b8b-ac48-b7ae56e479fc</d:Account><d:BankAccountNumber>793-501-01 0044410117</d:BankAccountNumber><d:Creator m:type="Edm.Int32">9</d:Creator><d:CreatedDate m:type="Edm.DateTime">2014-08-11T12:23:03</d:CreatedDate><d:ModifiedDate m:type="Edm.DateTime">2014-08-11T12:23:03</d:ModifiedDate><d:Description m:null="true" /><d:ID m:type="Edm.Int32">84</d:ID><d:LastSEPADirectDebitDate m:type="Edm.DateTime" m:null="true" /><d:Modifier m:type="Edm.Int32">9</d:Modifier><d:PaymentCondition m:null="true" /><d:Reference>44498237</d:Reference><d:SequenceType>F</d:SequenceType><d:SignatureDate m:type="Edm.DateTime">2014-07-18T00:00:00</d:SignatureDate><d:SortOfMandate>C</d:SortOfMandate><d:Status>A</d:Status></m:properties></content></entry>'; $doc = new DOMDocument(); $loaded = $doc->loadXML($xmlstr); var_dump($loaded);

preferences:
78.65 ms | 402 KiB | 5 Q