3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0"?> <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:Body> <air:AirCreateReservationRsp xmlns:air="http://www.travelport.com/schema/air_v22_0" xmlns:common_v19_0="http://www.travelport.com/schema/common_v19_0" TransactionId="2B80DFAF0A0758B057F0CDE7FBD86EA9" ResponseTime="3018"> <common_v19_0:ResponseMessage Code="0" Type="Warning" ProviderCode="1P"><![CDATA[* NON ENDO//FARE RSTR COULD APPLY * PRICING RULES VALIDATING CARRIER DEFAULT KL]]></common_v19_0:ResponseMessage> <common_v19_0:ResponseMessage Code="0" Type="Warning" ProviderCode="1P"><![CDATA[* FARE MAY CHANGE UNLESS TICKETED *]]></common_v19_0:ResponseMessage> <universal:UniversalRecord xmlns:universal="http://www.travelport.com/schema/universal_v20_0" xmlns:common_v19_0="http://www.travelport.com/schema/common_v19_0" LocatorCode="3M5N8M" Version="0" Status="Active"> <common_v19_0:BookingTraveler Key="16546489" TravelerType="ADT" DOB="1993-03-23" Gender="M"> <common_v19_0:BookingTravelerName Prefix="MR." First="Edo" Last="Rivai"/> <common_v19_0:PhoneNumber Key="21390125" Number="0208943309" Text="PaperFlies"> <common_v19_0:ProviderReservationInfoRef Key="10277507"/> </common_v19_0:PhoneNumber> <common_v19_0:SSR Key="25037887" Status="HK" Type="DOCS" FreeText="1/////@-----@/M//EDO/RIVAI" Carrier="KL" ProviderReservationInfoRef="10277507"/> <common_v19_0:SSR Key="25037888" Status="HK" Type="PSPT" FreeText="1@@----------" Carrier="YY" ProviderReservationInfoRef="10277507"/> <common_v19_0:SSR Key="25037889" Status="HK" Type="DOCS" FreeText="1/////@-----@/M//EDO/RIVAI" Carrier="YY" ProviderReservationInfoRef="10277507"/> <common_v19_0:NameRemark Key="1871595"> <common_v19_0:RemarkData>23MAR93</common_v19_0:RemarkData> <common_v19_0:ProviderReservationInfoRef Key="10277507"/> </common_v19_0:NameRemark> </common_v19_0:BookingTraveler> <common_v19_0:ActionStatus Key="9738722" Type="ACTIVE" ProviderReservationInfoRef="10277507" ProviderCode="1P"/> <universal:ProviderReservationInfo Key="10277507" ProviderCode="1P" LocatorCode="3EWQ5L" CreateDate="2014-02-13T13:47:52.932+00:00" ModifiedDate="2014-02-13T13:47:52.932+00:00" HostCreateDate="2014-02-13"/> <air:AirReservation xmlns:air="http://www.travelport.com/schema/air_v22_0" xmlns:common_v19_0="http://www.travelport.com/schema/common_v19_0" LocatorCode="EJQFA6" CreateDate="2014-02-13T13:47:51.004+00:00" ModifiedDate="2014-02-13T13:47:52.932+00:00"> <common_v19_0:BookingTravelerRef Key="16546489"/> <common_v19_0:ProviderReservationInfoRef Key="10277507"/> <air:AirSegment Key="37512747" Group="0" Carrier="KL" CabinClass="Economy" FlightNumber="835" ProviderCode="1P" Origin="AMS" Destination="DPS" DepartureTime="2014-03-01T21:00:00.000+01:00" ArrivalTime="2014-03-02T20:15:00.000+08:00" TravelTime="975" Distance="7560" ClassOfService="Q" ETicketability="Yes" Status="HK" ChangeOfPlane="false" ProviderReservationInfoRef="10277507" TravelOrder="1" OptionalServicesIndicator="false"> <air:FlightDetails Key="41770577" Origin="AMS" Destination="SIN" DepartureTime="2014-03-01T21:00:00.000+01:00" ArrivalTime="2014-03-02T16:20:00.000+08:00" FlightTime="1220" TravelTime="1220" Distance="6532" Equipment="772"/> <air:FlightDetails Key="41770578" Origin="SIN" Destination="DPS" DepartureTime="2014-03-02T17:35:00.000+08:00" ArrivalTime="2014-03-02T20:15:00.000+08:00" FlightTime="240" TravelTime="1615" Distance="1040" Equipment="772"/> </air:AirSegment> <air:AirSegment Key="37512748" Group="1" Carrier="KL" CabinClass="Economy" FlightNumber="836" ProviderCode="1P" Origin="DPS" Destination="AMS" DepartureTime="2014-04-01T20:35:00.000+08:00" ArrivalTime="2014-04-02T07:15:00.000+02:00" TravelTime="1000" Distance="7560" ClassOfService="N" ETicketability="Yes" Status="HK" ChangeOfPlane="false" ProviderReservationInfoRef="10277507" TravelOrder="2" OptionalServicesIndicator="false"> <air:FlightDetails Key="41770579" Origin="DPS" Destination="SIN" DepartureTime="2014-04-01T20:35:00.000+08:00" ArrivalTime="2014-04-01T23:05:00.000+08:00" FlightTime="230" TravelTime="230" Distance="1040" Equipment="77W"/> <air:FlightDetails Key="41770580" Origin="SIN" Destination="AMS" DepartureTime="2014-04-02T00:30:00.000+08:00" ArrivalTime="2014-04-02T07:15:00.000+02:00" FlightTime="1245" TravelTime="1640" Distance="6532" Equipment="77W"/> </air:AirSegment> <air:AirPricingInfo Key="13444787" TotalPrice="EUR878.05" BasePrice="EUR520.00" ApproximateTotalPrice="EUR878.05" ApproximateBasePrice="EUR520.00" Taxes="EUR358.05" LatestTicketingTime="2014-02-16T23:59:00.000+01:00" PricingMethod="Auto" ProviderCode="1P" ProviderReservationInfoRef="10277507" AirPricingInfoGroup="1" PricingType="TicketRecord"> <air:FareInfo Key="41624773" FareBasis="QSFNL" PassengerTypeCode="ADT" Origin="AMS" Destination="DPS" EffectiveDate="2014-02-13T14:47:52.929+01:00" TravelDate="2014-03-01" DepartureDate="2014-03-01" Amount="NUC409.91"> <air:BaggageAllowance> <air:NumberOfPieces>1</air:NumberOfPieces> <air:MaxWeight/> </air:BaggageAllowance> </air:FareInfo> <air:FareInfo Key="41624774" FareBasis="NRDNL" PassengerTypeCode="ADT" Origin="DPS" Destination="AMS" EffectiveDate="2014-02-13T21:47:52.930+08:00" TravelDate="2014-04-01" DepartureDate="2014-03-01" Amount="NUC300.60"> <air:BaggageAllowance> <air:NumberOfPieces>1</air:NumberOfPieces> <air:MaxWeight/> </air:BaggageAllowance> </air:FareInfo> <air:BookingInfo BookingCode="Q" FareInfoRef="41624773" SegmentRef="37512747"/> <air:BookingInfo BookingCode="N" FareInfoRef="41624774" SegmentRef="37512748"/> <air:TaxInfo Category="RN" Amount="EUR15.40" Key="83350600"/> <air:TaxInfo Category="VV" Amount="EUR2.00" Key="83350601"/> <air:TaxInfo Category="CJ" Amount="EUR12.77" Key="83350602"/> <air:TaxInfo Category="OO" Amount="EUR3.48" Key="83350603"/> <air:TaxInfo Category="SG" Amount="EUR10.40" Key="83350604"/> <air:TaxInfo Category="YR" Amount="EUR314.00" Key="83350605"/> <air:FareCalc>ADT AMS KL DPS409.91KL AMS300.60NUC710.51END ROE.731857 KL XT12.77CJ3.48OO10.40SG314.00YR</air:FareCalc> <air:PassengerType Code="ADT" BookingTravelerRef="16546489"/> <common_v19_0:BookingTravelerRef Key="16546489"/> <air:AirPricingModifiers FaresIndicator="PublicAndPrivateFares"/> </air:AirPricingInfo> </air:AirReservation> <common_v19_0:GeneralRemark Key="94946982" TypeInGds="Basic" SupplierType="Air" ProviderReservationInfoRef="10277507"> <common_v19_0:RemarkData>TARIEFSOORT PUBLISHED ALL</common_v19_0:RemarkData> </common_v19_0:GeneralRemark> <common_v19_0:AgencyInfo> <common_v19_0:AgentAction ActionType="Created" AgentCode="UAPI3320847692-B40600CD" BranchCode="P1639688" AgencyCode="S1639678" EventTime="2014-02-13T13:47:50.116+00:00"/> </common_v19_0:AgencyInfo> </universal:UniversalRecord> <common_v19_0:RequestKeyMappings> <common_v19_0:KeyMapping ElementName="AirSegment" OriginalKey="2T" NewKey="37512747"/> <common_v19_0:KeyMapping ElementName="AirSegment" OriginalKey="3T" NewKey="37512748"/> <common_v19_0:KeyMapping ElementName="BookingTraveler" OriginalKey="1" NewKey="16546489"/> </common_v19_0:RequestKeyMappings> </air:AirCreateReservationRsp> </SOAP:Body> </SOAP:Envelope>'; $doc = new DomDocument(); $doc->loadXML($xml); $segments = $doc->getElementsByTagName('Air:AirSegment'); foreach($segments as $segment) { echo $segment->getAttribute("status") . "\n"; } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0110.00818.68
8.3.50.0170.00621.45
8.3.40.0090.00618.95
8.3.30.0040.01120.72
8.3.20.0040.00420.71
8.3.10.0050.00322.47
8.3.00.0040.00422.71
8.2.180.0110.01116.75
8.2.170.0000.01922.96
8.2.160.0100.00320.54
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00321.29
8.2.110.0030.00622.46
8.2.100.0100.00319.66
8.2.90.0030.00619.55
8.2.80.0000.00819.57
8.2.70.0050.01017.38
8.2.60.0000.00818.18
8.2.50.0030.00618.07
8.2.40.0030.00518.40
8.2.30.0000.00818.43
8.2.20.0040.00417.95
8.2.10.0030.00618.02
8.2.00.0050.00318.04
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0000.00924.27
8.1.230.0080.00419.39
8.1.220.0000.00818.01
8.1.210.0080.00018.77
8.1.200.0030.00617.72
8.1.190.0040.00417.68
8.1.180.0030.00620.44
8.1.170.0040.00418.89
8.1.160.0070.00022.47
8.1.150.0070.00018.92
8.1.140.0060.00317.79
8.1.130.0030.00718.25
8.1.120.0000.00717.70
8.1.110.0050.00317.89
8.1.100.0040.00417.66
8.1.90.0070.00017.87
8.1.80.0080.00017.86
8.1.70.0000.00717.68
8.1.60.0030.00517.88
8.1.50.0000.00817.75
8.1.40.0090.00017.95
8.1.30.0000.00817.93
8.1.20.0060.00317.82
8.1.10.0030.00617.74
8.1.00.0000.00817.81
8.0.300.0040.00418.77
8.0.290.0040.00417.43
8.0.280.0000.00718.76
8.0.270.0030.00317.57
8.0.260.0030.00317.18
8.0.250.0030.00317.24
8.0.240.0070.00317.25
8.0.230.0000.00817.29
8.0.220.0090.00017.26
8.0.210.0040.00417.11
8.0.200.0060.00017.20
8.0.190.0080.00017.20
8.0.180.0070.00017.13
8.0.170.0080.00017.08
8.0.160.0040.00417.18
8.0.150.0000.00716.96
8.0.140.0000.00717.22
8.0.130.0000.00613.65
8.0.120.0000.00917.25
8.0.110.0040.00417.11
8.0.100.0040.00417.11
8.0.90.0000.00717.21
8.0.80.0000.01817.23
8.0.70.0040.00417.22
8.0.60.0000.00717.00
8.0.50.0040.00417.25
8.0.30.0120.00917.32
8.0.20.0130.00717.48
8.0.10.0040.00417.36
8.0.00.0100.01416.96
7.4.330.0000.00515.00
7.4.320.0000.00716.93
7.4.300.0030.00316.76
7.4.290.0000.00816.78
7.4.280.0000.00816.87
7.4.270.0030.00316.79
7.4.260.0000.00716.79
7.4.250.0040.00416.93
7.4.240.0040.00416.94
7.4.230.0000.00716.91
7.4.220.0040.01216.93
7.4.210.0050.00916.91
7.4.200.0040.00417.02
7.4.190.0040.00416.71
7.4.160.0130.00316.93
7.4.150.0100.01017.40
7.4.140.0060.01317.86
7.4.130.0080.01016.84
7.4.120.0050.01216.79
7.4.110.0100.00716.73
7.4.100.0060.01716.63
7.4.90.0150.00316.64
7.4.80.0030.01319.39
7.4.70.0030.01716.86
7.4.60.0030.01516.68
7.4.50.0030.00616.82
7.4.40.0040.01122.77
7.4.30.0070.01016.82
7.4.00.0060.01015.11
7.3.330.0030.00313.20
7.3.320.0000.00513.32
7.3.310.0030.00316.44
7.3.300.0030.00316.59
7.3.290.0100.00716.46
7.3.280.0070.01016.51
7.3.270.0110.00617.40
7.3.260.0120.00616.78
7.3.250.0100.00816.56
7.3.240.0170.00016.79
7.3.230.0060.01216.85
7.3.210.0030.01816.94
7.3.200.0130.00819.39
7.3.190.0090.00916.82
7.3.180.0120.00616.66
7.3.170.0150.00616.84
7.3.160.0130.00316.52
7.3.120.0090.00814.96
7.3.110.0080.00815.06
7.3.100.0090.00715.00
7.3.90.0070.00814.92
7.3.80.0080.00714.98
7.3.70.0070.00815.06
7.3.60.0060.00815.06
7.3.50.0050.00714.86
7.3.40.0060.00714.94
7.3.30.0070.00914.91
7.3.20.0070.00816.81
7.3.10.0070.00916.79
7.3.00.0040.01016.88
7.2.330.0030.01517.06
7.2.320.0130.00716.70
7.2.310.0030.01916.91
7.2.300.0170.00016.86
7.2.290.0060.01516.70
7.2.250.0070.01115.22
7.2.240.0080.00915.17
7.2.230.0060.00715.15
7.2.220.0070.00715.19
7.2.210.0060.00915.16
7.2.200.0070.00915.11
7.2.190.0080.00715.20
7.2.180.0040.01215.23
7.2.170.0090.00615.13
7.2.160.0030.01014.92
7.2.150.0070.00717.12
7.2.140.0060.00917.12
7.2.130.0060.00916.88
7.2.120.0060.00916.76
7.2.110.0080.00817.04
7.2.100.0070.00417.11
7.2.90.0090.00317.09
7.2.80.0070.00717.03
7.2.70.0070.00717.13
7.2.60.0090.00617.11
7.2.50.0060.00917.03
7.2.40.0060.00616.95
7.2.30.0030.01317.14
7.2.20.0040.01417.14
7.2.10.0130.00317.21
7.2.00.0050.01218.25
7.1.330.0070.00715.88
7.1.320.0070.00815.86
7.1.310.0070.00715.96
7.1.300.0040.00916.04
7.1.290.0040.01015.86
7.1.280.0070.00615.88
7.1.270.0070.00815.83
7.1.260.0060.00615.89
7.1.250.0060.01015.98
7.1.70.0040.00417.42
7.1.60.0170.00719.21
7.1.50.0200.00317.05
7.1.00.0070.05722.63
7.0.200.0040.01616.75
7.0.140.0000.08022.27
7.0.60.0000.06020.07
7.0.50.0000.06718.06
7.0.40.0170.05720.44
7.0.30.0230.04320.46
7.0.20.0330.06720.19
7.0.10.0330.08020.35
7.0.00.0000.04320.39
5.6.280.0030.07321.16
5.6.210.0130.08020.70
5.6.200.0100.07318.30
5.6.190.0070.08720.65
5.6.180.0200.04320.45
5.6.170.0200.05020.66
5.6.160.0130.07720.65
5.6.150.0070.05318.35
5.6.140.0100.06718.33
5.6.130.0070.08318.39
5.6.120.0130.07021.10
5.6.110.0100.09021.22
5.6.100.0030.08021.14
5.6.90.0000.06721.28
5.6.80.0000.04320.53
5.6.70.0270.07320.71
5.5.350.0000.08720.54
5.5.340.0170.07018.12
5.5.330.0030.04320.71
5.5.320.0200.04720.63
5.5.310.0170.04320.46
5.5.300.0130.07318.12
5.5.290.0030.05018.18
5.5.280.0070.05321.08
5.5.270.0100.06020.97
5.5.260.0070.07020.90
5.5.250.0100.08320.97
5.5.240.0030.05320.33
5.4.450.0700.05319.58
5.4.440.0770.06019.39
5.4.430.0800.05319.75
5.4.420.0970.05319.79
5.4.410.0100.05319.65
5.4.400.0430.05018.96
5.4.390.0400.05018.86
5.4.380.0270.04318.96
5.4.370.0430.03718.80
5.4.360.0230.05018.95
5.4.350.0050.04312.26
5.4.340.0100.04412.25
5.4.320.0090.04912.75
5.4.310.0060.03912.74
5.4.300.0050.03812.74
5.4.290.0070.03612.74
5.4.280.0090.05112.64
5.4.270.0040.03812.64
5.4.260.0080.04212.64
5.4.250.0030.05018.80
5.4.240.0030.05318.89
5.4.230.0130.04319.05
5.4.220.0030.05318.96
5.4.210.0070.05318.96
5.4.200.0070.05318.83
5.4.190.0070.05319.04
5.4.180.0070.05019.01
5.4.170.0000.05718.89
5.4.160.0130.05718.82
5.4.150.0100.05719.03
5.4.140.0100.05016.80
5.4.130.0030.04716.47
5.4.120.0130.05316.75
5.4.110.0000.05716.57
5.4.100.0030.05016.67
5.4.90.0100.04716.70
5.4.80.0030.05016.71
5.4.70.0130.04016.63
5.4.60.0070.06716.65
5.4.50.0070.04716.60
5.4.40.0030.06316.65
5.4.30.0000.05316.49
5.4.20.0030.06016.69
5.4.10.0000.07716.50
5.4.00.0200.04715.94
5.3.290.0080.05413.01
5.3.280.0030.06714.67
5.3.270.0070.07714.70
5.3.260.0130.05014.84
5.3.250.0200.05714.78
5.3.240.0030.05014.68
5.3.230.0070.06714.70
5.3.220.0100.04714.75
5.3.210.0030.05314.65
5.3.200.0070.05014.90
5.3.190.0070.05014.75
5.3.180.0100.06014.76
5.3.170.0030.05314.75
5.3.160.0070.06714.89
5.3.150.0030.08014.80
5.3.140.0030.05314.64
5.3.130.0100.04714.74
5.3.120.0070.05314.81
5.3.110.0030.05314.74
5.3.100.0100.06314.23
5.3.90.0170.05714.11
5.3.80.0070.04714.21
5.3.70.0100.06014.11
5.3.60.0030.06014.19
5.3.50.0100.05314.14
5.3.40.0070.04314.15
5.3.30.0070.04314.17
5.3.20.0030.05313.77
5.3.10.0030.05013.82
5.3.00.0070.05313.96
5.2.170.0130.05011.47
5.2.160.0000.04311.33
5.2.150.0030.04011.23
5.2.140.0000.04711.33
5.2.130.0070.04011.29
5.2.120.0170.04711.25
5.2.110.0070.03311.27
5.2.100.0030.05011.31
5.2.90.0100.04011.29
5.2.80.0000.05011.29
5.2.70.0070.05011.21
5.2.60.0070.04711.29
5.2.50.0070.05311.12
5.2.40.0030.04711.09
5.2.30.0000.06011.11
5.2.20.0030.04311.13
5.2.10.0130.03011.00
5.2.00.0030.04010.88
5.1.60.0030.04710.00
5.1.50.0070.03310.25
5.1.40.0130.03710.20
5.1.30.0000.05010.58
5.1.20.0030.03710.51
5.1.10.0000.04010.43
5.1.00.0070.04710.30
5.0.50.0100.0308.77
5.0.40.0000.0278.68
5.0.30.0030.0438.68
5.0.20.0130.0208.68
5.0.10.0030.0378.68
5.0.00.0030.0408.68
4.4.90.0030.0308.68
4.4.80.0030.0238.68
4.4.70.0030.0208.68
4.4.60.0100.0208.68
4.4.50.0000.0238.68
4.4.40.0030.0408.68
4.4.30.0000.0238.68
4.4.20.0030.0208.68
4.4.10.0030.0238.68
4.4.00.0030.0438.68
4.3.110.0030.0208.68
4.3.100.0000.0208.68
4.3.90.0070.0238.68
4.3.80.0030.0338.68
4.3.70.0030.0178.68
4.3.60.0000.0208.68
4.3.50.0000.0208.68
4.3.40.0000.0478.68
4.3.30.0000.0238.68
4.3.20.0070.0278.68
4.3.10.0000.0308.68
4.3.00.0030.0236.15

preferences:
42.87 ms | 401 KiB | 5 Q