3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $oPricingInfoNode = new DOMDocument(); $oPricingInfoNode->loadXML('<air:AirPricingSolution Key="1T"> <air:AirSegment Key="2T" Group="0" Origin="BRU" Destination="MAD" Carrier="IB" FlightNumber="3205" ClassOfService="P" DepartureTime="2014-02-18T19:10:00.000+01:00" ArrivalTime="2014-02-18T21:40:00.000+01:00" ProviderCode="1P" /> <air:AirSegment Key="3T" Group="1" Origin="MAD" Destination="BRU" Carrier="IB" FlightNumber="3214" ClassOfService="P" DepartureTime="2014-02-24T15:55:00.000+01:00" ArrivalTime="2014-02-24T18:25:00.000+01:00" ProviderCode="1P" /> <air:AirPricingInfo Key="4T" TotalPrice="EUR50.99" BasePrice="EUR2.00" ApproximateTotalPrice="EUR50.99" ApproximateBasePrice="EUR2.0 0" Taxes="EUR48.99" LatestTicketingTime="2013-10-27T23:59:00.000+00:00" PricingMethod="Auto" ProviderCode="1P"> <air:AirPricingModifiers FaresIndicator="PublicAndPrivateFares" /> <air:FareInfo Key="6T" FareBasis="PBE604K" PassengerTypeCode="ADT" Origin="BRU" Destination="MAD" EffectiveDate="2013-10-26T20:36: 45.370+02:00" Amount="NUC1.31"> <air:FareRuleKey FareInfoRef="6T" ProviderCode="1P">3Dxtd/jsY9Lo40qgTiQTot3Ga9aZj+SyHmN4mO25YCrug9CQWuP+X2+oD5t4/MZlfXbbvYG4TG43 VNwAhz2PnWmWLv0xpQB8</air:FareRuleKey> </air:FareInfo> <air:FareInfo Key="7T" FareBasis="PBE604K" PassengerTypeCode="ADT" Origin="MAD" Destination="BRU" EffectiveDate="2013-10-26T20:36: 45.370+02:00" Amount="NUC1.31"> <air:FareRuleKey FareInfoRef="7T" ProviderCode="1P">3Dxtd/jsY9Lo40qgTiQTot3Ga9aZj+Syda+Y0VQMYBHug9CQWuP+X2+oD5t4/MZlfXbbvYG4TG43 VNwAhz2PnWmWLv0xpQB8</air:FareRuleKey> </air:FareInfo> <air:BookingInfo BookingCode="P" FareInfoRef="6T" SegmentRef="2T" Origin="BRU" Destination="MAD" /> <air:BookingInfo BookingCode="P" FareInfoRef="7T" SegmentRef="3T" Origin="MAD" Destination="BRU" /> </air:AirPricingInfo>');
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: DOMDocument::loadXML(): Namespace prefix air on AirPricingSolution is not defined in Entity, line: 1 in /in/8cZQ1 on line 19 Warning: DOMDocument::loadXML(): Namespace prefix air on AirSegment is not defined in Entity, line: 2 in /in/8cZQ1 on line 19 Warning: DOMDocument::loadXML(): Namespace prefix air on AirSegment is not defined in Entity, line: 3 in /in/8cZQ1 on line 19 Warning: DOMDocument::loadXML(): Namespace prefix air on AirPricingInfo is not defined in Entity, line: 4 in /in/8cZQ1 on line 19 Warning: DOMDocument::loadXML(): Namespace prefix air on AirPricingModifiers is not defined in Entity, line: 5 in /in/8cZQ1 on line 19 Warning: DOMDocument::loadXML(): Namespace prefix air on FareInfo is not defined in Entity, line: 6 in /in/8cZQ1 on line 19 Warning: DOMDocument::loadXML(): Namespace prefix air on FareRuleKey is not defined in Entity, line: 7 in /in/8cZQ1 on line 19 Warning: DOMDocument::loadXML(): Namespace prefix air on FareInfo is not defined in Entity, line: 10 in /in/8cZQ1 on line 19 Warning: DOMDocument::loadXML(): Namespace prefix air on FareRuleKey is not defined in Entity, line: 11 in /in/8cZQ1 on line 19 Warning: DOMDocument::loadXML(): Namespace prefix air on BookingInfo is not defined in Entity, line: 14 in /in/8cZQ1 on line 19 Warning: DOMDocument::loadXML(): Namespace prefix air on BookingInfo is not defined in Entity, line: 15 in /in/8cZQ1 on line 19 Warning: DOMDocument::loadXML(): Premature end of data in tag AirPricingSolution line 1 in Entity, line: 16 in /in/8cZQ1 on line 19
Output for hhvm-3.10.0 - 3.12.0
Warning: Namespace prefix air on AirPricingSolution is not defined in Entity, line: 1 Warning: Namespace prefix air on AirSegment is not defined in Entity, line: 2 Warning: Namespace prefix air on AirSegment is not defined in Entity, line: 3 Warning: Namespace prefix air on AirPricingInfo is not defined in Entity, line: 4 Warning: Namespace prefix air on AirPricingModifiers is not defined in Entity, line: 5 Warning: Namespace prefix air on FareInfo is not defined in Entity, line: 6 Warning: Namespace prefix air on FareRuleKey is not defined in Entity, line: 7 Warning: Namespace prefix air on FareInfo is not defined in Entity, line: 10 Warning: Namespace prefix air on FareRuleKey is not defined in Entity, line: 11 Warning: Namespace prefix air on BookingInfo is not defined in Entity, line: 14 Warning: Namespace prefix air on BookingInfo is not defined in Entity, line: 15 Warning: Premature end of data in tag AirPricingSolution line 1 in Entity, line: 16
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: domdocument in /in/8cZQ1 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/8cZQ1 on line 3