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('AirReservation')->item(0); foreach($segments->childNodes as $segment) { if ("air:AirSegment" == $segment->nodeName) { 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.0160.00318.55
8.3.50.0140.00921.27
8.3.40.0120.00618.92
8.3.30.0070.00720.73
8.3.20.0040.00420.63
8.3.10.0040.00422.46
8.3.00.0080.00022.55
8.2.180.0100.00716.75
8.2.170.0040.01122.96
8.2.160.0140.00020.77
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0070.00726.16
8.2.120.0050.00319.94
8.2.110.0040.00422.49
8.2.100.0040.00819.59
8.2.90.0080.00019.46
8.2.80.0040.00419.76
8.2.70.0030.00617.88
8.2.60.0000.00818.41
8.2.50.0040.00418.07
8.2.40.0000.00818.46
8.2.30.0050.00318.29
8.2.20.0080.00017.94
8.2.10.0050.00318.20
8.2.00.0050.00317.95
8.1.280.0140.00325.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00023.99
8.1.230.0070.00619.34
8.1.220.0000.00818.05
8.1.210.0080.00018.77
8.1.200.0040.00417.73
8.1.190.0060.00317.88
8.1.180.0080.00020.50
8.1.170.0040.00418.66
8.1.160.0040.00422.48
8.1.150.0000.00819.02
8.1.140.0080.00017.84
8.1.130.0000.00818.16
8.1.120.0050.00317.80
8.1.110.0020.00517.64
8.1.100.0050.00317.75
8.1.90.0080.00017.71
8.1.80.0040.00417.69
8.1.70.0040.00417.68
8.1.60.0060.00317.77
8.1.50.0040.00417.88
8.1.40.0030.00617.94
8.1.30.0080.00017.96
8.1.20.0000.00917.89
8.1.10.0000.00917.96
8.1.00.0040.00417.82
8.0.300.0040.00418.77
8.0.290.0040.00417.41
8.0.280.0000.00718.76
8.0.270.0000.00717.57
8.0.260.0000.00717.01
8.0.250.0000.00717.14
8.0.240.0000.00817.15
8.0.230.0030.00317.16
8.0.220.0000.00817.08
8.0.210.0000.00717.15
8.0.200.0030.00317.14
8.0.190.0050.00317.29
8.0.180.0040.00417.22
8.0.170.0050.00317.22
8.0.160.0040.00417.29
8.0.150.0000.00717.18
8.0.140.0040.00417.06
8.0.130.0050.00013.56
8.0.120.0040.00417.18
8.0.110.0040.00417.08
8.0.100.0040.00417.03
8.0.90.0050.00317.25
8.0.80.0090.00617.23
8.0.70.0030.00516.97
8.0.60.0000.00817.07
8.0.50.0000.00817.20
8.0.30.0150.00617.36
8.0.20.0130.00717.40
8.0.10.0040.00417.34
8.0.00.0110.00717.11
7.4.330.0030.00315.00
7.4.320.0040.00416.97
7.4.300.0050.00216.98
7.4.290.0000.00817.00
7.4.280.0040.00417.01
7.4.270.0080.00016.91
7.4.260.0040.00416.69
7.4.250.0070.00016.82
7.4.240.0000.00716.89
7.4.230.0070.00016.93
7.4.220.0150.00316.80
7.4.210.0060.01116.92
7.4.200.0000.00716.84
7.4.190.0040.00416.88
7.4.160.0110.00616.80
7.4.150.0210.00017.40
7.4.140.0140.00617.86
7.4.130.0020.01516.95
7.4.120.0120.00716.96
7.4.110.0100.00716.88
7.4.100.0090.00916.93
7.4.90.0120.00616.79
7.4.80.0100.00719.39
7.4.70.0070.01016.91
7.4.60.0120.00616.78
7.4.50.0040.00416.64
7.4.40.0140.00322.77
7.4.30.0090.00916.91
7.4.00.0060.01215.06
7.3.330.0000.00513.36
7.3.320.0000.00613.40
7.3.310.0080.00016.58
7.3.300.0000.00716.43
7.3.290.0090.00616.55
7.3.280.0060.01416.52
7.3.270.0090.01017.40
7.3.260.0150.00416.61
7.3.250.0110.00616.66
7.3.240.0130.00616.86
7.3.230.0060.01116.82
7.3.210.0030.01416.73
7.3.200.0180.00019.39
7.3.190.0070.01516.57
7.3.180.0080.00816.59
7.3.170.0070.01016.53
7.3.160.0080.01116.71
7.3.120.0050.01314.85
7.3.110.0060.00914.82
7.3.100.0140.00014.72
7.3.90.0100.00314.88
7.3.80.0040.01114.75
7.3.70.0050.00514.95
7.3.60.0000.01315.05
7.3.50.0090.00314.89
7.3.40.0030.00714.85
7.3.30.0130.00314.99
7.3.20.0060.00916.66
7.3.10.0040.00716.83
7.3.00.0080.00316.83
7.2.330.0130.00617.15
7.2.320.0030.01417.18
7.2.310.0120.00617.11
7.2.300.0100.00716.75
7.2.290.0140.00317.20
7.2.250.0070.01315.37
7.2.240.0100.01014.92
7.2.230.0120.00615.47
7.2.220.0030.01415.27
7.2.210.0060.01015.24
7.2.200.0070.00715.01
7.2.190.0160.00015.34
7.2.180.0060.00915.18
7.2.170.0100.00315.15
7.2.80.0050.00516.86
7.2.60.0100.00617.16
7.1.330.0000.01215.98
7.1.320.0030.01016.07
7.1.310.0090.00615.89
7.1.300.0070.00415.98
7.1.290.0070.01016.09
7.1.280.0070.01016.00
7.1.270.0120.00315.92
7.1.260.0050.00516.00
7.1.200.0060.00616.15
7.1.70.0030.00517.46
7.1.60.0060.01919.21
7.1.50.0040.00717.13
7.1.00.0000.03722.65
7.0.200.0030.01416.75
7.0.140.0070.07022.29
7.0.110.0070.09020.12
7.0.100.0070.08020.25
7.0.90.0000.08720.21
7.0.80.0130.07720.21
7.0.70.0200.06720.18
7.0.60.0130.07320.09
7.0.50.0130.07320.32
7.0.40.0000.07720.48
7.0.30.0100.05720.46
7.0.20.0070.04720.09
7.0.10.0130.03320.41
7.0.00.0100.04020.35
5.6.280.0100.06321.29
5.6.260.0100.08020.94
5.6.250.0000.08720.80
5.6.240.0170.07020.82
5.6.230.0070.08020.82
5.6.220.0070.07720.98
5.6.210.0070.08020.82
5.6.200.0170.06721.31
5.6.190.0100.08021.39
5.6.180.0000.06321.15
5.6.170.0000.05321.18
5.6.160.0070.04021.34
5.6.150.0000.05321.47
5.6.140.0030.04021.22
5.6.130.0030.04321.13
5.6.120.0000.04321.41
5.6.110.0070.04021.20
5.6.100.0070.04021.14
5.6.90.0030.07021.32
5.6.80.0030.04020.52
5.6.70.0030.05320.52
5.6.60.0000.07720.48
5.6.50.0030.03720.80
5.6.40.0030.04020.77
5.6.30.0030.04020.73
5.6.20.0070.03720.55
5.6.10.0030.04720.85
5.6.00.0030.04720.64
5.5.380.0100.07020.72
5.5.370.0070.08320.70
5.5.360.0030.08720.61
5.5.350.0070.08320.68
5.5.340.0100.07321.11
5.5.330.0130.07020.83
5.5.320.0100.04721.23
5.5.310.0030.06721.25
5.5.300.0030.04321.09
5.5.290.0100.03720.93
5.5.280.0070.04721.13
5.5.270.0030.06020.91
5.5.260.0030.04020.81
5.5.250.0030.04020.94
5.5.240.0030.05020.22
5.5.230.0030.05320.62
5.5.220.0030.05320.46
5.5.210.0000.04320.62
5.5.200.0000.06320.46
5.5.190.0030.05020.42
5.5.180.0100.03720.44
5.5.160.0030.04320.40
5.5.150.0130.03020.56
5.5.140.0030.04320.48
5.5.130.0070.03720.19
5.5.120.0070.03720.57
5.5.110.0030.04020.30
5.5.100.0070.06320.46
5.5.90.0030.03720.26
5.5.80.0070.04320.48
5.5.70.0000.04320.37
5.5.60.0000.04020.36
5.5.50.0070.05320.33
5.5.40.0070.07720.11
5.5.30.0130.07320.47
5.5.20.0100.06720.11
5.5.10.0100.08020.11
5.5.00.0100.07020.42
5.4.450.0000.04319.52
5.4.440.0030.04019.50
5.4.430.0000.04719.80
5.4.420.0030.04019.61
5.4.410.0030.04019.35
5.4.400.0070.02719.18
5.4.390.0030.06019.41
5.4.380.0100.03019.27
5.4.370.0070.04719.41
5.4.360.0030.04019.18
5.4.350.0000.05719.48
5.4.340.0000.06319.27
5.4.320.0070.04319.29
5.4.310.0100.06019.41
5.4.300.0030.04019.40
5.4.290.0030.04319.45
5.4.280.0000.04019.41
5.4.270.0030.03719.45
5.4.260.0030.03719.16
5.4.250.0100.03319.38
5.4.240.0070.07719.14
5.4.230.0100.03719.11
5.4.220.0070.07019.40
5.4.210.0170.06319.40
5.4.200.0070.07719.40
5.4.190.0100.07719.27
5.4.180.0000.05019.27
5.4.170.0030.06019.26
5.4.160.0130.07019.47
5.4.150.0030.08019.14
5.4.140.0030.07016.81
5.4.130.0030.04716.82
5.4.120.0100.07016.38
5.4.110.0000.05016.50
5.4.100.0030.07316.36
5.4.90.0070.07016.83
5.4.80.0130.06716.63
5.4.70.0130.06716.81
5.4.60.0000.06716.33
5.4.50.0100.04016.61
5.4.40.0070.05716.62
5.4.30.0030.06716.47
5.4.20.0130.06016.75
5.4.10.0030.07316.75
5.4.00.0030.07016.12
5.3.290.0030.04314.79
5.3.280.0000.04314.88
5.3.270.0070.07314.66
5.3.260.0070.08014.73
5.3.250.0030.05014.73
5.3.240.0030.08314.78
5.3.230.0030.07014.72
5.3.220.0070.08014.68
5.3.210.0070.07014.77
5.3.200.0070.08014.73
5.3.190.0070.07714.72
5.3.180.0100.07014.68
5.3.170.0070.05014.59
5.3.160.0100.07014.75
5.3.150.0030.07014.84
5.3.140.0070.07314.67
5.3.130.0100.07314.68
5.3.120.0130.07014.79
5.3.110.0030.07714.75
5.3.100.0170.06314.16
5.3.90.0070.06714.12
5.3.80.0030.07314.21
5.3.70.0130.06714.14
5.3.60.0000.08014.12
5.3.50.0070.04314.06
5.3.40.0070.07014.13
5.3.30.0100.05314.06
5.3.20.0130.05713.86
5.3.10.0070.07013.80
5.3.00.0030.07313.76
5.2.170.0030.07011.69
5.2.160.0070.05711.69
5.2.150.0030.06011.69
5.2.140.0030.06311.69
5.2.130.0070.06311.69
5.2.120.0000.06011.69
5.2.110.0270.01711.69
5.2.100.0070.06311.69
5.2.90.0100.05711.69
5.2.80.0000.06311.69
5.2.70.0100.06011.69
5.2.60.0000.07011.69
5.2.50.0030.06311.69
5.2.40.0030.06011.69
5.2.30.0070.06011.69
5.2.20.0070.06311.69
5.2.10.0030.03311.69
5.2.00.0070.06011.69
5.1.60.0030.05011.69
5.1.50.0000.06011.69
5.1.40.0000.04011.69
5.1.30.0070.05011.69
5.1.20.0100.04711.69
5.1.10.0070.04311.69
5.1.00.0070.04711.69
5.0.50.0030.04311.69
5.0.40.0070.04011.69
5.0.30.0000.07311.69
5.0.20.0030.04711.69
5.0.10.0100.03711.69
5.0.00.0000.07011.69
4.4.90.0030.03711.69
4.4.80.0000.04011.69
4.4.70.0000.03311.69
4.4.60.0000.04011.69
4.4.50.0070.03011.69
4.4.40.0000.03311.69
4.4.30.0100.02711.69
4.4.20.0070.03011.69
4.4.10.0100.02311.69
4.4.00.0030.05311.69
4.3.110.0000.03711.69
4.3.100.0000.03711.69
4.3.90.0000.03011.69
4.3.80.0070.04711.69
4.3.70.0100.02011.69
4.3.60.0070.02711.69
4.3.50.0030.03011.69
4.3.40.0030.05011.69
4.3.30.0070.03011.69
4.3.20.0000.03711.69
4.3.10.0000.02011.69
4.3.00.0000.03311.69

preferences:
41.26 ms | 401 KiB | 5 Q