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);
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
bool(true)
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Fatal error: Cannot instantiate non-existent class: domdocument in /in/hGQTa on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: domdocument in /in/hGQTa on line 3

preferences:
264.32 ms | 401 KiB | 459 Q