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->getElementsByTagNameNS('AirSegment', 'http://www.travelport.com/schema/air_v22_0'); echo $segments->length . "\n"; 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.01118.89
8.3.50.0100.00722.23
8.3.40.0070.01019.05
8.3.30.0090.00620.54
8.3.20.0070.00020.54
8.3.10.0050.00322.48
8.3.00.0080.00022.75
8.2.180.0150.00616.63
8.2.170.0180.00022.96
8.2.160.0100.00320.69
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0110.00426.16
8.2.120.0080.00019.81
8.2.110.0060.00322.68
8.2.100.0120.00019.59
8.2.90.0050.00419.59
8.2.80.0040.00419.59
8.2.70.0040.00417.88
8.2.60.0040.00418.41
8.2.50.0050.00318.07
8.2.40.0040.00418.28
8.2.30.0000.00818.45
8.2.20.0060.00317.90
8.2.10.0050.00318.03
8.2.00.0060.00318.04
8.1.280.0090.00925.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0070.00324.21
8.1.230.0060.00619.54
8.1.220.0030.00517.79
8.1.210.0050.00318.77
8.1.200.0030.00717.48
8.1.190.0000.00917.91
8.1.180.0060.00320.44
8.1.170.0090.00018.79
8.1.160.0040.00422.44
8.1.150.0060.00318.92
8.1.140.0000.00817.76
8.1.130.0040.00718.16
8.1.120.0000.00817.66
8.1.110.0040.00417.67
8.1.100.0040.00417.87
8.1.90.0040.00417.72
8.1.80.0070.00017.68
8.1.70.0030.00317.79
8.1.60.0030.00617.99
8.1.50.0030.00517.93
8.1.40.0060.00317.91
8.1.30.0000.00817.83
8.1.20.0040.00418.06
8.1.10.0000.00817.77
8.1.00.0040.00417.75
8.0.300.0050.00218.77
8.0.290.0040.00417.55
8.0.280.0000.00718.64
8.0.270.0000.00717.70
8.0.260.0030.00317.14
8.0.250.0000.00717.32
8.0.240.0060.00317.34
8.0.230.0030.00317.30
8.0.220.0040.00717.25
8.0.210.0030.00317.16
8.0.200.0000.00717.26
8.0.190.0000.00817.33
8.0.180.0040.00417.22
8.0.170.0040.00417.16
8.0.160.0040.00417.23
8.0.150.0040.00417.18
8.0.140.0000.00817.06
8.0.130.0070.00013.74
8.0.120.0000.00917.10
8.0.110.0000.00817.29
8.0.100.0070.00017.27
8.0.90.0040.00417.28
8.0.80.0130.01017.27
8.0.70.0000.00717.14
8.0.60.0020.00517.19
8.0.50.0040.00417.10
8.0.30.0090.00917.47
8.0.20.0080.01217.40
8.0.10.0070.00017.21
8.0.00.0030.01817.11
7.4.330.0030.00315.00
7.4.320.0030.00516.76
7.4.300.0030.00316.81
7.4.290.0030.00316.92
7.4.280.0030.00516.79
7.4.270.0030.00316.83
7.4.260.0040.00416.89
7.4.250.0030.00516.70
7.4.240.0070.00016.81
7.4.230.0000.00716.77
7.4.220.0070.01016.92
7.4.210.0090.01016.86
7.4.200.0040.00416.93
7.4.190.0050.00316.86
7.4.160.0090.00616.80
7.4.150.0090.00917.40
7.4.140.0110.01017.86
7.4.130.0130.00516.80
7.4.120.0110.00616.71
7.4.110.0100.01016.76
7.4.100.0060.01116.80
7.4.90.0040.01616.86
7.4.80.0090.00919.39
7.4.70.0100.00816.81
7.4.60.0060.01216.71
7.4.50.0040.00416.75
7.4.40.0110.00722.77
7.4.30.0110.00716.75
7.4.00.0070.01115.06
7.3.330.0000.00613.43
7.3.320.0030.00313.41
7.3.310.0080.00016.62
7.3.300.0030.00316.57
7.3.290.0060.01016.65
7.3.280.0060.01116.58
7.3.270.0100.01017.40
7.3.260.0140.01116.87
7.3.250.0140.00716.59
7.3.240.0150.00316.60
7.3.230.0030.01316.91
7.3.210.0070.01016.50
7.3.200.0070.00916.61
7.3.190.0140.00416.47
7.3.180.0100.00616.83
7.3.170.0160.00616.54
7.3.160.0090.00916.52
7.3.120.0000.01415.18
7.3.00.0060.00616.99
7.2.330.0090.00916.77
7.2.320.0090.00917.04
7.2.310.0150.00617.21
7.2.300.0120.00616.59
7.2.290.0070.01016.83
7.2.130.0090.00916.96
7.2.120.0030.01017.16
7.2.110.0140.00717.03
7.2.100.0000.00916.71
7.2.90.0030.00616.85
7.2.80.0000.01217.08
7.2.70.0070.01017.21
7.2.60.0120.00916.81
7.2.50.0130.00717.30
7.2.40.0060.00317.00
7.2.30.0120.00416.93
7.2.20.0030.01316.74
7.2.10.0060.00617.24
7.2.00.0050.01118.26
7.1.250.0040.00816.15
7.1.240.0040.00415.78
7.1.230.0000.01415.93
7.1.220.0130.00316.11
7.1.210.0030.01215.89
7.1.200.0130.00315.70
7.1.190.0040.01115.66
7.1.180.0100.00716.15
7.1.170.0110.00415.70
7.1.160.0000.01415.80
7.1.150.0040.00915.77
7.1.140.0040.00716.08
7.1.130.0040.01115.84
7.1.120.0100.00716.05
7.1.110.0060.00616.01
7.1.100.0060.00917.14
7.1.90.0120.00316.18
7.1.80.0030.00915.89
7.1.70.0010.00716.47
7.1.60.0080.01217.59
7.1.50.0130.00925.44
7.1.40.0000.01215.88
7.1.30.0030.01015.73
7.1.20.0030.00716.06
7.1.10.0000.01215.92
7.1.00.0000.02619.30
7.0.330.0070.01015.66
7.0.320.0030.00615.46
7.0.310.0000.01715.59
7.0.300.0030.01415.60
7.0.290.0170.00015.49
7.0.280.0030.00715.36
7.0.270.0000.01215.64
7.0.260.0030.01015.58
7.0.250.0080.00415.63
7.0.240.0030.01015.56
7.0.230.0130.00015.50
7.0.220.0100.00315.62
7.0.210.0070.00315.56
7.0.200.0070.00716.20
7.0.190.0040.00715.65
7.0.180.0050.00315.53
7.0.170.0090.00015.46
7.0.160.0100.00315.71
7.0.150.0030.00915.70
7.0.140.0020.04218.85
7.0.130.0080.00415.48
7.0.120.0070.00715.45
7.0.110.0030.01215.66
7.0.100.0050.02717.83
7.0.90.0170.04317.80
7.0.80.0050.04117.76
7.0.70.0110.03817.89
7.0.60.0070.04417.96
7.0.50.0070.04318.11
7.0.40.0040.05416.93
7.0.30.0120.03417.06
7.0.20.0030.05216.84
7.0.10.0100.02516.79
7.0.00.0050.02616.82
5.6.380.0000.01314.24
5.6.370.0050.00814.38
5.6.360.0030.01314.50
5.6.350.0060.00614.85
5.6.340.0000.01414.82
5.6.330.0030.01014.70
5.6.320.0100.00314.54
5.6.310.0040.01113.94
5.6.300.0070.00714.38
5.6.290.0030.01314.13
5.6.280.0060.03717.78
5.6.270.0100.00014.16
5.6.260.0080.00814.34
5.6.250.0090.04717.38
5.6.240.0110.03917.35
5.6.230.0080.04417.49
5.6.220.0040.05117.58
5.6.210.0150.03317.64
5.6.200.0150.04617.79
5.6.190.0120.04217.78
5.6.180.0120.03217.69
5.6.170.0080.03717.75
5.6.160.0130.02217.83
5.6.150.0160.02117.79
5.6.140.0110.04517.92
5.6.130.0030.05217.97
5.6.120.0080.04417.74
5.6.110.0050.03317.74
5.6.100.0060.04117.72
5.6.90.0030.05017.83
5.6.80.0030.03017.42
5.6.70.0070.04017.44
5.6.60.0080.02617.46
5.6.50.0070.03717.53
5.6.40.0120.04017.63
5.6.30.0070.04217.53
5.6.20.0060.04517.54
5.6.10.0070.03817.52
5.6.00.0100.02617.32
5.5.380.0060.02415.87
5.5.370.0080.03415.78
5.5.360.0050.02915.92
5.5.350.0130.03615.96
5.5.340.0050.02716.21
5.5.330.0090.04215.97
5.5.320.0100.04116.07
5.5.310.0060.02716.13
5.5.300.0100.02615.91
5.5.290.0050.02915.96
5.5.280.0100.04016.06
5.5.270.0090.03116.12
5.5.260.0070.04016.22
5.5.250.0030.02815.98
5.5.240.0080.02315.78
5.5.230.0040.04515.87
5.5.220.0070.03715.67
5.5.210.0080.04215.75
5.5.200.0080.04115.82
5.5.190.0020.04115.67
5.5.180.0030.02315.70
5.5.170.0060.00611.16
5.5.160.0060.03915.64
5.5.150.0070.02815.74
5.5.140.0030.02615.62
5.5.130.0030.03215.59
5.5.120.0030.04415.73
5.5.110.0070.04015.74
5.5.100.0120.03515.67
5.5.90.0110.03515.78
5.5.80.0020.04315.76
5.5.70.0000.02815.65
5.5.60.0040.03415.50
5.5.50.0060.03715.66
5.5.40.0100.03315.64
5.5.30.0060.04115.66
5.5.20.0030.04015.69
5.5.10.0030.04215.72
5.5.00.0140.03715.64
5.4.450.0140.03515.48
5.4.440.0090.02315.30
5.4.430.0060.03315.35
5.4.420.0060.02815.19
5.4.410.0020.03214.96
5.4.400.0060.03815.19
5.4.390.0060.03314.96
5.4.380.0000.04515.17
5.4.370.0080.03815.10
5.4.360.0070.03315.08
5.4.350.0020.02515.17
5.4.340.0030.04615.08
5.4.330.0000.00610.55
5.4.320.0070.03715.09
5.4.310.0070.04115.25
5.4.300.0060.04114.95
5.4.290.0030.04315.15
5.4.280.0050.04314.96
5.4.270.0030.04015.13
5.4.260.0000.02915.09
5.4.250.0030.02915.03
5.4.240.0030.04114.94
5.4.230.0100.02815.19
5.4.220.0080.04315.07
5.4.210.0130.03015.25
5.4.200.0050.02715.01
5.4.190.0020.02915.09
5.4.180.0020.03315.15
5.4.170.0080.03715.06
5.4.160.0050.02115.03
5.4.150.0070.04115.07
5.4.140.0100.03813.76
5.4.130.0060.02313.80
5.4.120.0000.03013.82
5.4.110.0070.03013.76
5.4.100.0070.03913.79
5.4.90.0070.02813.76
5.4.80.0080.03813.66
5.4.70.0080.01813.84
5.4.60.0060.01513.64
5.4.50.0040.02113.85
5.4.40.0070.03713.72
5.4.30.0050.03213.75
5.4.20.0070.04013.81
5.4.10.0020.03013.68
5.4.00.0080.03813.43
5.3.290.0060.02512.73
5.3.280.0080.03512.65
5.3.270.0090.03712.76
5.3.260.0050.02812.60
5.3.250.0030.02112.73
5.3.240.0030.04112.57
5.3.230.0050.04412.66
5.3.220.0030.03612.54
5.3.210.0020.04312.61
5.3.200.0030.04012.48
5.3.190.0070.04012.65
5.3.180.0090.03612.78
5.3.170.0060.02612.69
5.3.160.0020.02212.63
5.3.150.0080.03012.62
5.3.140.0050.01812.72
5.3.130.0090.03512.52
5.3.120.0060.03812.55
5.3.110.0080.03712.59
5.3.100.0090.03512.28
5.3.90.0070.03012.40
5.3.80.0070.04012.37
5.3.70.0110.03212.35
5.3.60.0040.03412.46
5.3.50.0030.04212.26
5.3.40.0030.04212.32
5.3.30.0090.02712.36
5.3.20.0030.03512.18
5.3.10.0060.03412.04
5.3.00.0050.04212.11
5.2.170.0040.02010.46
5.2.160.0050.02210.49
5.2.150.0030.03510.51
5.2.140.0050.03310.35
5.2.130.0040.03310.52
5.2.120.0020.02410.39
5.2.110.0090.03210.38
5.2.100.0050.02110.53
5.2.90.0080.02710.49
5.2.80.0000.03410.42
5.2.70.0060.02610.21
5.2.60.0060.01410.36
5.2.50.0030.03010.45
5.2.40.0030.02110.46
5.2.30.0020.02310.23
5.2.20.0030.02810.37
5.2.10.0030.03310.20
5.2.00.0020.02410.26
5.1.60.0060.0279.48
5.1.50.0030.0319.65
5.1.40.0000.0199.61
5.1.30.0020.0249.78
5.1.20.0050.0229.71
5.1.10.0020.0159.51
5.1.00.0060.0189.58
5.0.50.0030.0229.37
5.0.40.0050.0189.37
5.0.30.0050.0339.37
5.0.20.0000.0269.37
5.0.10.0030.0129.37
5.0.00.0000.0399.37
4.4.90.0030.0189.37
4.4.80.0030.0159.37
4.4.70.0050.0179.37
4.4.60.0020.0129.37
4.4.50.0050.0199.37
4.4.40.0000.0259.37
4.4.30.0020.0159.37
4.4.20.0030.0159.37
4.4.10.0020.0229.37
4.4.00.0050.0269.37
4.3.110.0020.0169.37
4.3.100.0000.0219.37
4.3.90.0020.0199.37
4.3.80.0000.0179.37
4.3.70.0030.0139.37
4.3.60.0030.0189.37
4.3.50.0030.0129.37
4.3.40.0020.0159.37
4.3.30.0000.0219.37
4.3.20.0020.0109.37
4.3.10.0000.0209.37
4.3.00.0020.0159.37

preferences:
50.63 ms | 401 KiB | 5 Q