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 = $oAirPricingInfoNodes->firstChild; while(!$oCurrentNode) { echo $oCurrentNode->nodeName; $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.0150.00018.68
8.3.50.0160.00721.21
8.3.40.0090.01318.87
8.3.30.0170.01119.00
8.3.20.0100.00018.98
8.3.10.0040.00421.16
8.3.00.0040.00423.76
8.2.180.0040.01316.88
8.2.170.0120.00622.96
8.2.160.0150.00320.63
8.2.150.0110.00324.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0060.00621.38
8.2.110.0080.00420.76
8.2.100.0080.00418.16
8.2.90.0080.00319.58
8.2.80.0030.00719.68
8.2.70.0030.00617.84
8.2.60.0080.00018.18
8.2.50.0060.00318.07
8.2.40.0060.00318.59
8.2.30.0000.01019.78
8.2.20.0060.00318.20
8.2.10.0060.00318.18
8.2.00.0040.00418.11
8.1.280.0110.01125.92
8.1.270.0040.00423.99
8.1.260.0180.01126.35
8.1.250.0090.00028.09
8.1.240.0030.00722.59
8.1.230.0110.00721.34
8.1.220.0060.00318.77
8.1.210.0060.00719.26
8.1.200.0040.00417.61
8.1.190.0000.01017.78
8.1.180.0100.00018.10
8.1.170.0030.00718.79
8.1.160.0000.00819.25
8.1.150.0080.00019.03
8.1.140.0000.00917.80
8.1.130.0060.00318.18
8.1.120.0030.00517.66
8.1.110.0080.00017.88
8.1.100.0000.00817.83
8.1.90.0060.00317.76
8.1.80.0050.00517.88
8.1.70.0040.00417.85
8.1.60.0080.00018.00
8.1.50.0000.01017.72
8.1.40.0100.00017.77
8.1.30.0040.00417.96
8.1.20.0030.00617.97
8.1.10.0000.00917.91
8.1.00.0000.01017.72
8.0.300.0040.00820.05
8.0.290.0000.00917.29
8.0.280.0000.00918.58
8.0.270.0080.00317.46
8.0.260.0030.00517.05
8.0.250.0000.00917.16
8.0.240.0030.00617.29
8.0.230.0000.01117.05
8.0.220.0000.00717.20
8.0.210.0050.00317.20
8.0.200.0030.00617.16
8.0.190.0050.00517.26
8.0.180.0040.00417.21
8.0.170.0050.00517.15
8.0.160.0030.00616.98
8.0.150.0030.00617.07
8.0.140.0040.00816.95
8.0.130.0020.00513.74
8.0.120.0000.01017.17
8.0.110.0040.00417.16
8.0.100.0000.00717.12
8.0.90.0030.00617.11
8.0.80.0130.01617.08
8.0.70.0030.00717.16
8.0.60.0070.00316.98
8.0.50.0100.00017.04
8.0.30.0230.00817.42
8.0.20.0150.01817.44
8.0.10.0000.01017.21
8.0.00.0220.00816.93
7.4.330.0060.00016.95
7.4.320.0000.00916.77
7.4.300.0000.00816.67
7.4.290.0050.00516.61
7.4.280.0000.01116.62
7.4.270.0000.01016.68
7.4.260.0002.00313.56
7.4.250.0040.00416.61
7.4.240.0000.00916.67
7.4.230.0040.00416.74
7.4.220.0370.00416.76
7.4.210.0110.01016.76
7.4.200.0040.00416.73
7.4.190.0040.00416.75
7.4.160.0160.01016.78
7.4.150.0200.01217.40
7.4.140.0300.00517.86
7.4.130.0160.01816.67
7.4.120.0250.00516.70
7.4.110.0160.02116.76
7.4.100.0270.01616.68
7.4.90.0150.01916.70
7.4.80.0130.01319.39
7.4.70.0170.01116.69
7.4.60.0060.01616.82
7.4.50.0090.00016.68
7.4.40.0080.00822.77
7.4.30.0190.01616.70
7.4.00.0070.01015.16
7.3.330.0031.99913.38
7.3.320.0031.99713.54
7.3.310.0000.00916.43
7.3.300.0030.00516.55
7.3.290.0280.00616.66
7.3.280.0170.00616.53
7.3.270.0270.00317.40
7.3.260.0230.01118.24
7.3.250.0120.01516.69
7.3.240.0330.01316.61
7.3.230.0160.01316.94
7.3.210.0290.02416.68
7.3.200.0100.01419.39
7.3.190.0320.03416.53
7.3.180.0260.01716.42
7.3.170.0070.01116.58
7.3.160.0260.00516.71
7.3.120.0090.00615.25
7.3.10.0090.00516.75
7.3.00.0090.00616.83
7.2.330.0240.01016.80
7.2.320.0190.00816.77
7.2.310.0110.01816.94
7.2.300.0250.01316.68
7.2.290.0230.01316.98
7.2.130.0080.00816.70
7.2.120.0070.00717.03
7.2.110.0000.01516.83
7.2.100.0070.00417.06
7.2.90.0140.00017.00
7.2.80.0070.00717.21
7.2.70.0080.00817.00
7.2.60.0140.00316.70
7.2.50.0090.00317.08
7.2.40.0040.00816.77
7.2.30.0000.01616.86
7.2.20.0070.00716.92
7.2.10.0060.00617.00
7.2.00.0070.00618.14
7.1.250.0060.00615.94
7.1.100.0000.01217.90
7.1.70.0240.00717.02
7.1.60.0060.01017.28
7.1.50.0100.01317.19
7.1.00.0070.05322.38
7.0.200.0100.00716.95
7.0.140.0130.06322.23
7.0.80.0500.05319.98
7.0.70.0500.09020.23
7.0.60.0230.05320.27
7.0.50.0270.06320.38
7.0.40.0070.08320.13
7.0.30.0130.07720.14
7.0.20.0000.05320.32
7.0.10.0130.08320.25
7.0.00.0030.08320.30
5.6.280.0070.06021.10
5.6.230.0100.07020.75
5.6.220.0170.07720.95
5.6.210.0070.08320.93
5.6.200.0070.07721.17
5.6.190.0100.08721.16
5.6.180.0100.07721.20
5.6.170.0030.09321.31
5.6.160.0100.08321.23
5.6.150.0130.08321.14
5.6.140.0100.07321.21
5.6.130.0030.08721.23
5.6.120.0130.07721.33
5.6.110.0170.02721.09
5.6.100.0070.07721.29
5.6.90.0030.08321.16
5.6.80.0100.03720.52
5.6.70.0100.07720.57
5.6.60.0100.08020.67
5.6.50.0030.05020.52
5.6.40.0070.04720.63
5.6.30.0130.06720.53
5.6.20.0130.06720.71
5.6.10.0100.06720.55
5.6.00.0070.08020.55
5.5.370.0100.08720.47
5.5.360.0100.07720.52
5.5.350.0070.08020.58
5.5.340.0100.07721.09
5.5.330.0030.04720.96
5.5.320.0030.04721.07
5.5.310.0170.06721.08
5.5.300.0070.04320.80
5.5.290.0200.06021.02
5.5.280.0130.07721.11
5.5.270.0070.08720.84
5.5.260.0100.07720.95
5.5.250.0100.03320.83
5.5.240.0030.07320.39
5.5.230.0100.06720.45
5.5.220.0200.06320.29
5.5.210.0130.06020.38
5.5.200.0170.06320.47
5.5.190.0030.05720.30
5.5.180.0070.04020.23
5.5.160.0000.08020.17
5.5.150.0000.07320.37
5.5.140.0130.07720.30
5.5.130.0000.08320.29
5.5.120.0070.08020.45
5.5.110.0070.08020.42
5.5.100.0130.07720.29
5.5.90.0130.07320.33
5.5.80.0070.08720.38
5.5.70.0000.05020.18
5.5.60.0100.04320.16
5.5.50.0170.07020.34
5.5.40.0130.04320.28
5.5.30.0030.05720.20
5.5.20.0070.07720.15
5.5.10.0100.09320.14
5.5.00.0130.07320.16
5.4.450.0100.07719.34
5.4.440.0100.08019.41
5.4.430.0030.05019.15
5.4.420.0000.06019.20
5.4.410.0130.07319.31
5.4.400.0170.06719.18
5.4.390.0070.07719.02
5.4.380.0100.07319.09
5.4.370.0030.06318.90
5.4.360.0100.07019.20
5.4.350.0100.06018.99
5.4.340.0070.06019.09
5.4.320.0070.04319.00
5.4.310.0100.07719.11
5.4.300.0070.05319.16
5.4.290.0130.03719.14
5.4.280.0070.06718.98
5.4.270.0070.07319.14
5.4.260.0100.07319.10
5.4.250.0070.07019.09
5.4.240.0100.07019.09
5.4.230.0170.06719.16
5.4.220.0130.07319.14
5.4.210.0100.07319.03
5.4.200.0100.07019.13
5.4.190.0100.07019.00
5.4.180.0000.04719.00
5.4.170.0030.06319.16
5.4.160.0070.07719.13
5.4.150.0170.03719.06
5.4.140.0030.07716.23
5.4.130.0130.07016.51
5.4.120.0130.07016.45
5.4.110.0130.06716.45
5.4.100.0070.03716.36
5.4.90.0100.06716.61
5.4.80.0070.07716.34
5.4.70.0100.07016.39
5.4.60.0030.06316.30
5.4.50.0070.05316.37
5.4.40.0130.03316.23
5.4.30.0070.06716.28
5.4.20.0030.03716.48
5.4.10.0030.03716.33
5.4.00.0130.03015.91
5.3.290.0170.05714.59
5.3.280.0230.06714.60
5.3.270.0070.05314.59
5.3.260.0170.03314.59
5.3.250.0070.07714.59
5.3.240.0130.03314.59
5.3.230.0130.06714.59
5.3.220.0070.07714.59
5.3.210.0170.07714.59
5.3.200.0100.04314.59
5.3.190.0100.07014.59
5.3.180.0070.07314.59
5.3.170.0070.07714.59
5.3.160.0130.03314.59
5.3.150.0000.07714.59
5.3.140.0100.06014.59
5.3.130.0100.03314.59
5.3.120.0130.03014.59
5.3.110.0030.04014.59
5.3.100.0030.03714.59
5.3.90.0000.04014.59
5.3.80.0070.03314.59
5.3.70.0000.04014.59
5.3.60.0030.03714.59
5.3.50.0030.03714.59
5.3.40.0070.03314.59
5.3.30.0030.03714.59
5.3.20.0100.03014.59
5.3.10.0070.03314.59
5.3.00.0000.04014.59
5.2.170.0000.03314.59
5.2.160.0030.03014.59
5.2.150.0000.03014.59
5.2.140.0000.03314.59
5.2.130.0000.02714.59
5.2.120.0070.03014.59
5.2.110.0030.03014.59
5.2.100.0030.03014.59
5.2.90.0000.03314.59
5.2.80.0030.03014.59
5.2.70.0100.02014.59
5.2.60.0070.02314.59
5.2.50.0100.03310.99
5.2.40.0030.04310.89
5.2.30.0130.03310.83
5.2.20.0070.04011.04
5.2.10.0100.03310.84
5.2.00.0030.05310.72
5.1.60.0100.0509.99
5.1.50.0000.04010.11
5.1.40.0030.0339.90
5.1.30.0070.03310.26
5.1.20.0130.04310.46
5.1.10.0030.03710.00
5.1.00.0100.0379.99
5.0.50.0030.0308.57
5.0.40.0100.0238.52
5.0.30.0000.0438.15
5.0.20.0030.0278.30
5.0.10.0030.0438.23
5.0.00.0070.0408.35
4.4.90.0000.02014.59
4.4.80.0030.01314.59
4.4.70.0030.02014.59
4.4.60.0000.01714.59
4.4.50.0030.01314.59
4.4.40.0000.02314.59
4.4.30.0000.01714.59
4.4.20.0000.01714.59
4.4.10.0000.01714.59
4.4.00.0030.02014.59
4.3.110.0030.01314.59
4.3.100.0000.01714.59
4.3.90.0000.01314.59
4.3.80.0030.02314.59
4.3.70.0000.01714.59
4.3.60.0000.01314.59
4.3.50.0000.01714.59
4.3.40.0030.02014.59
4.3.30.0000.01714.59
4.3.20.0000.01314.59
4.3.10.0000.01314.59
4.3.00.0000.01314.59

preferences:
26.45 ms | 401 KiB | 5 Q