3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nodes = '<air:AirPricingInfo Key="3T" TotalPrice="EUR328.98" BasePrice="EUR191.00" ApproximateTotalPrice="EUR328.98" ApproximateBasePrice="EUR191.00" Taxes="EUR137.98" LatestTicketingTime="2013-10-15T23:59:00.000+00:00" PricingMethod="Auto" PlatingCarrier="KL" ProviderCode="1P"> <air:FareInfo Key="13T" FareBasis="TWKNL" PassengerTypeCode="ADT" Origin="AMS" Destination="ROM" EffectiveDate="2013-10-08T17:49:20.621+02:00" Amount="NUC125.56"> <air:FareRuleKey FareInfoRef="13T" ProviderCode="1P">So05Ua7WWQ6LUnMVagmgWzIoZJ04F5ffjXmuoKjIAQzOW8SrBX6figwnZa5vZPwFnJN2p9gbxJQel+e1Y8YwIV8pQurxVP92</air:FareRuleKey> </air:FareInfo> <air:FareInfo Key="15T" FareBasis="TWKNL" PassengerTypeCode="ADT" Origin="ROM" Destination="AMS" EffectiveDate="2013-10-08T17:49:20.630+02:00" Amount="NUC125.56"> <air:FareRuleKey FareInfoRef="15T" ProviderCode="1P">So05Ua7WWQ6LUnMVagmgWzIoZJ04F5fflvTVZQjlKmjOW8SrBX6figwnZa5vZPwFnJN2p9gbxJQel+e1Y8YwIV8pQurxVP92</air:FareRuleKey> </air:FareInfo> <air:BookingInfo BookingCode="T" FareInfoRef="13T" SegmentRef="1T"/> <air:BookingInfo BookingCode="T" FareInfoRef="15T" SegmentRef="2T"/> <air:PassengerType Code="ADT" BookingTravelerRef="1"/> </air:AirPricingInfo> <air:AirPricingInfo Key="17T" TotalPrice="EUR275.52" BasePrice="EUR144.00" ApproximateTotalPrice="EUR275.52" ApproximateBasePrice="EUR144.00" Taxes="EUR131.52" LatestTicketingTime="2013-10-15T23:59:00.000+00:00" PricingMethod="Auto" PlatingCarrier="KL" ProviderCode="1P"> <air:FareInfo Key="27T" FareBasis="TWKNL" PassengerTypeCode="CNN" Origin="AMS" Destination="ROM" EffectiveDate="2013-10-08T17:49:20.653+02:00" Amount="NUC94.17"> <air:FareTicketDesignator Value="CH25"/> <air:FareRuleKey FareInfoRef="27T" ProviderCode="1P">So05Ua7WWQ6LUnMVagmgWzIoZJ04F5ffjXmuoKjIAQzOW8SrBX6figwnZa5vZPwFnJN2p9gbxJQel+e1Y8YwIV8pQurxVP92</air:FareRuleKey> </air:FareInfo> <air:FareInfo Key="29T" FareBasis="TWKNL" PassengerTypeCode="CNN" Origin="ROM" Destination="AMS" EffectiveDate="2013-10-08T17:49:20.655+02:00" Amount="NUC94.17"> <air:FareTicketDesignator Value="CH25"/> <air:FareRuleKey FareInfoRef="29T" ProviderCode="1P">So05Ua7WWQ6LUnMVagmgWzIoZJ04F5fflvTVZQjlKmjOW8SrBX6figwnZa5vZPwFnJN2p9gbxJQel+e1Y8YwIV8pQurxVP92</air:FareRuleKey> </air:FareInfo> <air:BookingInfo BookingCode="T" FareInfoRef="27T" SegmentRef="1T"/> <air:BookingInfo BookingCode="T" FareInfoRef="29T" SegmentRef="2T"/> <air:PassengerType Code="CNN" BookingTravelerRef="2"/> </air:AirPricingInfo> <air:AirPricingInfo Key="31T" TotalPrice="EUR19.00" BasePrice="EUR19.00" ApproximateTotalPrice="EUR19.00" ApproximateBasePrice="EUR19.00" Taxes="EUR0.00" LatestTicketingTime="2013-10-15T23:59:00.000+00:00" PricingMethod="Auto" PlatingCarrier="KL" ProviderCode="1P"> <air:FareInfo Key="32T" FareBasis="TWKNL" PassengerTypeCode="INF" Origin="AMS" Destination="ROM" EffectiveDate="2013-10-08T17:49:20.656+02:00" Amount="NUC12.55"> <air:FareTicketDesignator Value="IN90"/> <air:FareRuleKey FareInfoRef="32T" ProviderCode="1P">So05Ua7WWQ6LUnMVagmgWzIoZJ04F5ffjXmuoKjIAQzOW8SrBX6figwnZa5vZPwFnJN2p9gbxJQel+e1Y8YwIV8pQurxVP92</air:FareRuleKey> </air:FareInfo> <air:FareInfo Key="34T" FareBasis="TWKNL" PassengerTypeCode="INF" Origin="ROM" Destination="AMS" EffectiveDate="2013-10-08T17:49:20.657+02:00" Amount="NUC12.55"> <air:FareTicketDesignator Value="IN90"/> <air:FareRuleKey FareInfoRef="34T" ProviderCode="1P">So05Ua7WWQ6LUnMVagmgWzIoZJ04F5fflvTVZQjlKmjOW8SrBX6figwnZa5vZPwFnJN2p9gbxJQel+e1Y8YwIV8pQurxVP92</air:FareRuleKey> </air:FareInfo> <air:BookingInfo BookingCode="T" FareInfoRef="32T" SegmentRef="1T"/> <air:BookingInfo BookingCode="T" FareInfoRef="34T" SegmentRef="2T"/> <air:PassengerType Code="INF" BookingTravelerRef="3"/> </air:AirPricingInfo>'; $oNodesEncapsulated = new DOMDocument(); $oNodesEncapsulated->loadXml('<root><air:wrapper xmlns:common_v19_0="http://www.travelport.com/schema/common_v19_0" xmlns:air="http://www.travelport.com/schema/air_v22_0" TransactionId="98C211960A076113466F7BECF086E1DC" ResponseTime="4399">'.$nodes.'</air:wrapper></root>'); # Select all air:PricingInfo nodes $oAirPricingInfoNodes = $oNodesEncapsulated->getElementsByTagNameNs('http://www.travelport.com/schema/air_v22_0', 'AirPricingInfo'); # Check amount of nodes in selection if( ! $oAirPricingInfoNodes->length){ return FALSE; } # Loop over air:PricingInfo node selection foreach($oAirPricingInfoNodes as $oAirPricingInfoNode) { # Remove all nodes except the fareInfo nodes $oCurrentNode = $oAirPricingInfoNode->firstChild; while(NULL !== $oCurrentNode) { if (1 == $oCurrentNode->nodeType) { echo $oCurrentNode->nodeName . "\n"; } $oCurrentNode = $oCurrentNode->nextSibling; } //$oAirPricingSolutionNode->appendChild($this->importNode($oAirPricingInfoNode, TRUE)); } ?>

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.0170.00318.55
8.3.50.0100.00822.11
8.3.40.0090.01319.09
8.3.30.0040.01119.26
8.3.20.0030.00620.45
8.3.10.0040.00423.90
8.3.00.0080.00021.08
8.2.180.0060.00916.63
8.2.170.0070.00722.96
8.2.160.0070.00720.49
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0110.00426.16
8.2.120.0040.00421.15
8.2.110.0000.01022.54
8.2.100.0000.01118.09
8.2.90.0060.00318.28
8.2.80.0060.00317.97
8.2.70.0060.00317.88
8.2.60.0000.00818.30
8.2.50.0000.00818.07
8.2.40.0030.00518.59
8.2.30.0060.00318.55
8.2.20.0060.00317.95
8.2.10.0040.00418.46
8.2.00.0040.00418.08
8.1.280.0100.01025.92
8.1.270.0060.00324.33
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0100.00722.59
8.1.230.0000.01221.22
8.1.220.0080.00018.02
8.1.210.0060.00319.10
8.1.200.0080.00417.50
8.1.190.0050.00317.60
8.1.180.0090.00018.10
8.1.170.0000.00818.74
8.1.160.0040.00422.34
8.1.150.0000.00818.91
8.1.140.0050.00317.76
8.1.130.0000.00717.99
8.1.120.0070.00017.61
8.1.110.0060.00317.68
8.1.100.0050.00217.75
8.1.90.0070.00017.67
8.1.80.0000.00717.75
8.1.70.0000.00717.62
8.1.60.0000.00817.79
8.1.50.0000.00817.66
8.1.40.0090.00017.82
8.1.30.0030.00517.95
8.1.20.0050.00317.88
8.1.10.0000.00717.88
8.1.00.0040.00417.86
8.0.300.0000.00720.36
8.0.290.0000.00917.00
8.0.280.0000.00718.60
8.0.270.0040.00417.52
8.0.260.0000.00717.52
8.0.250.0000.00717.23
8.0.240.0000.00717.29
8.0.230.0050.00217.10
8.0.220.0080.00017.13
8.0.210.0000.00817.18
8.0.200.0060.00017.21
8.0.190.0030.00517.31
8.0.180.0000.00717.15
8.0.170.0050.00217.27
8.0.160.0000.00717.11
8.0.150.0050.00317.14
8.0.140.0000.00717.04
8.0.130.0040.00413.67
8.0.120.0000.00817.09
8.0.110.0000.00817.03
8.0.100.0050.00217.09
8.0.90.0000.00717.16
8.0.80.0040.01117.14
8.0.70.0040.00417.02
8.0.60.0000.00817.22
8.0.50.0050.00316.99
8.0.30.0050.01417.38
8.0.20.0130.01217.45
8.0.10.0000.00717.32
8.0.00.0120.00616.92
7.4.330.0050.00015.35
7.4.320.0000.00616.66
7.4.300.0030.00316.86
7.4.290.0070.00016.79
7.4.280.0060.00616.82
7.4.270.0000.00716.88
7.4.260.0040.00416.86
7.4.250.0000.00816.73
7.4.240.0050.00316.96
7.4.230.0030.00316.92
7.4.220.0160.00316.75
7.4.210.0070.00716.78
7.4.200.0040.00416.63
7.4.160.0070.01716.84
7.4.150.0190.00317.40
7.4.140.0110.00917.86
7.4.130.0100.00816.89
7.4.120.0090.00916.79
7.4.110.0000.01816.62
7.4.100.0120.00616.80
7.4.90.0070.01116.89
7.4.80.0120.01219.39
7.4.70.0060.01116.78
7.4.60.0060.01016.72
7.4.50.0000.00916.56
7.4.40.0000.01816.84
7.4.30.0110.00616.71
7.4.00.0060.01115.08
7.3.330.0040.00413.25
7.3.320.0050.00013.38
7.3.310.0070.00016.51
7.3.300.0070.00016.66
7.3.290.0000.00816.58
7.3.280.0100.00816.60
7.3.270.0090.00917.40
7.3.260.0140.00716.83
7.3.250.0090.00916.71
7.3.240.0140.00316.89
7.3.230.0120.00616.75
7.3.210.0070.01116.74
7.3.200.0110.00519.39
7.3.190.0090.00916.54
7.3.180.0100.00616.77
7.3.170.0090.00916.78
7.3.160.0090.01216.62
7.3.120.0070.01114.98
7.3.110.0030.01615.18
7.3.100.0050.01215.13
7.3.90.0070.00915.13
7.3.80.0060.00515.13
7.3.70.0030.01215.09
7.3.60.0080.00715.15
7.3.50.0090.00715.00
7.3.40.0100.00415.00
7.3.30.0020.00714.90
7.3.20.0070.00816.72
7.3.10.0110.00316.91
7.3.00.0020.01316.81
7.2.330.0070.01116.86
7.2.320.0140.00317.07
7.2.310.0040.01316.93
7.2.300.0130.00417.09
7.2.290.0080.01116.84
7.2.250.0030.01515.32
7.2.240.0100.00915.17
7.2.230.0060.00915.26
7.2.220.0090.00515.34
7.2.210.0060.01015.30
7.2.200.0090.00815.27
7.2.190.0110.00015.19
7.2.180.0070.01015.13
7.2.170.0070.00715.09
7.2.00.0110.00619.29
7.1.330.0050.01116.04
7.1.320.0040.00715.89
7.1.310.0080.00815.99
7.1.300.0120.00216.04
7.1.290.0050.01115.82
7.1.280.0050.00915.90
7.1.270.0040.00815.84
7.1.260.0030.01116.05
7.1.200.0000.01215.96
7.1.100.0030.00618.13
7.1.70.0090.00317.33
7.1.60.0140.01019.70
7.1.50.0090.01616.97
7.1.00.0100.07022.54
7.0.200.0050.00516.91
7.0.140.0030.07722.05
7.0.60.0000.08720.19
7.0.50.0070.03718.01
7.0.40.0070.04020.14
7.0.30.0470.07720.41
7.0.20.0270.06020.32
7.0.10.0030.05320.28
7.0.00.0070.06720.27
5.6.280.0000.10021.10
5.6.210.0100.06720.86
5.6.200.0070.06318.29
5.6.190.0030.07320.88
5.6.180.0370.05020.60
5.6.170.0200.08320.71
5.6.160.0000.06320.58
5.6.150.0000.04718.38
5.6.140.0070.04718.32
5.6.130.0070.04018.35
5.6.120.0070.05321.05
5.6.110.0100.08321.05
5.6.100.0070.06021.04
5.6.90.0200.07321.07
5.6.80.0070.07320.59
5.5.350.3970.04320.58
5.5.340.0000.04318.18
5.5.330.0170.07720.32
5.5.320.0030.07020.32
5.5.310.0230.07020.35
5.5.300.0070.05018.13
5.5.290.0030.04318.12
5.5.280.0130.04720.94
5.5.270.0070.08020.93
5.5.260.0030.04320.97
5.5.250.0070.08020.71
5.5.240.0230.06020.27
5.4.450.0230.07719.68
5.4.440.0230.05319.60
5.4.430.0170.04319.40
5.4.420.0400.05319.59
5.4.410.0200.04719.39
5.4.400.0200.04019.20
5.4.390.0270.05319.18
5.4.380.0170.04319.36
5.4.370.0170.03718.99
5.4.360.0200.04019.00
5.4.350.0270.04019.29
5.4.340.0200.05019.33
5.4.320.0130.04319.21
5.4.310.0230.06719.22
5.4.300.0200.03319.34
5.4.290.0200.03319.01
5.4.280.0230.03319.30
5.4.270.0130.04019.16
5.4.260.0330.05719.19
5.4.250.0130.04019.36
5.4.240.0130.04018.98
5.4.230.0230.02719.17
5.4.220.0200.03719.02
5.4.210.0230.06319.30
5.4.200.0230.04319.28
5.4.190.0270.04019.02
5.4.180.0100.05019.23
5.4.170.0300.06719.16
5.4.160.0100.05019.17
5.4.150.0100.04319.27
5.4.140.0300.06016.63
5.4.130.0200.06716.47
5.4.120.0170.03316.48
5.4.110.0130.04316.29
5.4.100.0200.07016.67
5.4.90.0200.07016.50
5.4.80.0200.06016.58
5.4.70.0170.03716.49
5.4.60.0200.06316.65
5.4.50.0200.04016.63
5.4.40.0270.05716.63
5.4.30.0200.04016.44
5.4.20.0200.06316.26
5.4.10.0200.06016.63
5.4.00.0200.05716.05
5.3.290.0300.05714.75
5.3.280.0230.07314.61
5.3.270.0200.06714.70
5.3.260.0200.07714.76
5.3.250.0270.02314.59
5.3.240.0230.06014.65
5.3.230.0270.06714.83
5.3.220.0070.04314.60
5.3.210.0230.04714.65
5.3.200.0170.04314.64
5.3.190.0130.06714.75
5.3.180.0230.07014.74
5.3.170.0230.06714.59
5.3.160.0200.07714.75
5.3.150.0230.03714.59
5.3.140.0200.07314.55
5.3.130.0330.05714.63
5.3.120.0270.07714.59
5.3.110.0300.06014.70
5.3.100.0270.04014.12
5.3.90.0270.03314.04
5.3.80.0300.05314.19
5.3.70.0130.05314.25
5.3.60.0400.05314.03
5.3.50.0230.05713.98
5.3.40.0300.05313.97
5.3.30.0230.03714.13
5.3.20.0300.06313.74
5.3.10.0270.06713.73
5.3.00.0230.05713.64
5.2.170.0170.03711.32
5.2.160.0200.04011.18
5.2.150.0200.02711.18
5.2.140.0230.03711.22
5.2.130.0130.06711.32
5.2.120.0230.06011.14
5.2.110.0230.05011.27
5.2.100.0170.03311.32
5.2.90.0200.02711.23
5.2.80.0170.03011.11
5.2.70.0170.05311.13
5.2.60.0230.03711.12
5.2.50.0270.05011.29
5.2.40.0200.03711.03
5.2.30.0230.05311.18
5.2.20.0300.03311.17
5.2.10.0270.06010.95
5.2.00.0230.05010.80
5.1.60.0200.04710.18
5.1.50.0200.05010.13
5.1.40.0230.03010.25
5.1.30.0130.05710.61
5.1.20.0200.05010.39
5.1.10.0100.03010.16
5.1.00.0130.02710.35
5.0.50.0100.0208.63
5.0.40.0070.0208.50
5.0.30.0100.0278.44
5.0.20.0000.0278.28
5.0.10.0100.0138.25
5.0.00.0030.0378.45
4.4.90.0070.0277.42
4.4.80.0100.0337.42
4.4.70.0070.0237.42
4.4.60.0070.0307.42
4.4.50.0100.0337.42
4.4.40.0070.0337.42
4.4.30.0100.0207.42
4.4.20.0130.0137.42
4.4.10.0070.0177.42
4.4.00.0070.0237.42
4.3.110.0070.0137.42
4.3.100.0030.0177.42
4.3.90.0100.0137.42
4.3.80.0030.0277.42
4.3.70.0070.0137.42
4.3.60.0100.0137.42
4.3.50.0030.0207.42
4.3.40.0030.0277.42
4.3.30.0030.0177.42
4.3.20.0000.0177.42
4.3.10.0030.0137.42
4.3.00.0000.0177.42

preferences:
56.69 ms | 401 KiB | 5 Q