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.0140.00718.55
8.3.50.0100.00921.20
8.3.40.0070.00718.92
8.3.30.0140.00418.88
8.3.20.0050.00318.89
8.3.10.0040.00421.22
8.3.00.0070.00023.72
8.2.180.0090.00616.86
8.2.170.0070.00722.96
8.2.160.0050.00820.76
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00821.10
8.2.110.0040.00720.77
8.2.100.0040.00818.09
8.2.90.0080.00019.46
8.2.80.0000.00719.71
8.2.70.0050.00517.75
8.2.60.0080.00018.15
8.2.50.0000.00818.07
8.2.40.0040.00418.47
8.2.30.0000.00719.79
8.2.20.0030.00517.93
8.2.10.0000.00818.08
8.2.00.0060.00318.12
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0070.00324.17
8.1.230.0100.00321.25
8.1.220.0000.00818.77
8.1.210.0060.00619.25
8.1.200.0060.00317.48
8.1.190.0050.00317.72
8.1.180.0050.00318.10
8.1.170.0030.00518.84
8.1.160.0000.00819.11
8.1.150.0040.00418.87
8.1.140.0050.00217.63
8.1.130.0050.00218.11
8.1.120.0000.00717.64
8.1.110.0050.00317.79
8.1.100.0020.00517.73
8.1.90.0040.00417.71
8.1.80.0000.00817.70
8.1.70.0040.00417.62
8.1.60.0030.00617.90
8.1.50.0040.00417.69
8.1.40.0050.00317.82
8.1.30.0040.00418.02
8.1.20.0040.00417.99
8.1.10.0040.00417.75
8.1.00.0060.00317.65
8.0.300.0030.00720.10
8.0.290.0070.00017.43
8.0.280.0000.00718.70
8.0.270.0030.00317.51
8.0.260.0000.00717.02
8.0.250.0040.00417.11
8.0.240.0030.00517.25
8.0.230.0040.00417.08
8.0.220.0030.00317.22
8.0.210.0000.00817.06
8.0.200.0070.00017.29
8.0.190.0030.00517.26
8.0.180.0040.00417.24
8.0.170.0030.00617.04
8.0.160.0030.00517.21
8.0.150.0030.00517.16
8.0.140.0000.00817.03
8.0.130.0000.00613.59
8.0.120.0030.00617.13
8.0.110.0040.00417.17
8.0.100.0000.00817.01
8.0.90.0050.00317.14
8.0.80.0000.01517.17
8.0.70.0020.00517.12
8.0.60.0040.00416.98
8.0.50.0080.00017.17
8.0.30.0110.00817.26
8.0.20.0140.00517.53
8.0.10.0030.00617.20
8.0.00.0130.00717.07
7.4.330.0000.00516.98
7.4.320.0060.00016.78
7.4.300.0000.00716.67
7.4.290.0070.00016.79
7.4.280.0000.00916.86
7.4.270.0030.00316.65
7.4.260.0070.00013.65
7.4.250.0040.00416.85
7.4.240.0040.00416.79
7.4.230.0000.00816.87
7.4.220.0030.01516.65
7.4.210.0080.00616.83
7.4.200.0030.00616.96
7.4.190.0000.00716.74
7.4.160.0030.01316.52
7.4.150.0060.01217.40
7.4.140.0120.01117.86
7.4.130.0120.00816.85
7.4.120.0090.01116.76
7.4.110.0100.00716.78
7.4.100.0100.01016.79
7.4.90.0100.01316.84
7.4.80.0110.01119.39
7.4.70.0140.00716.70
7.4.60.0100.00716.67
7.4.50.0040.00416.74
7.4.40.0110.00422.77
7.4.30.0130.01316.84
7.4.00.0070.00715.00
7.3.330.0050.00013.32
7.3.320.0000.00613.20
7.3.310.0030.00316.41
7.3.300.0070.00016.52
7.3.290.0060.00916.49
7.3.280.0060.01016.55
7.3.270.0060.01217.40
7.3.260.0080.01018.24
7.3.250.0100.00816.57
7.3.240.0140.00716.50
7.3.230.0080.00816.52
7.3.210.0070.01016.54
7.3.200.0090.01619.39
7.3.190.0030.02016.60
7.3.180.0160.00016.63
7.3.170.0090.00616.76
7.3.160.0030.01416.76
7.3.120.0080.00814.94
7.3.110.0060.01215.12
7.3.100.0120.00615.09
7.3.90.0070.00715.07
7.3.80.0080.00814.79
7.3.70.0110.00414.95
7.3.60.0030.01015.02
7.3.50.0070.01014.89
7.3.40.0040.00814.92
7.3.30.0000.01214.92
7.3.20.0000.01116.86
7.3.10.0000.01216.67
7.3.00.0060.00616.98
7.2.330.0120.00616.95
7.2.320.0090.00916.79
7.2.310.0040.01617.06
7.2.300.0210.00316.94
7.2.290.0100.00716.75
7.2.250.0070.01415.30
7.2.240.0100.01015.41
7.2.230.0030.01414.96
7.2.220.0120.00414.92
7.2.210.0100.00715.32
7.2.200.0100.00715.21
7.2.190.0040.00715.12
7.2.180.0130.00315.42
7.2.170.0070.01115.20
7.2.00.0060.01019.68
7.1.330.0040.01116.03
7.1.320.0090.00315.95
7.1.310.0070.01115.92
7.1.300.0030.01316.15
7.1.290.0000.01415.99
7.1.280.0060.00616.00
7.1.270.0140.00015.84
7.1.260.0030.00615.93
7.1.200.0090.00615.78
7.1.100.0080.00318.32
7.1.70.0090.00917.37
7.1.60.0040.00817.43
7.1.50.0060.00917.11
7.1.00.0030.03722.56
7.0.200.0000.01616.91
7.0.140.0000.07722.09
7.0.100.0070.08320.25
7.0.90.0130.04320.06
7.0.80.0130.07720.18
7.0.70.0000.08020.05
7.0.60.0070.08019.98
7.0.50.0100.07020.32
7.0.40.0100.08020.20
7.0.30.0100.08020.19
7.0.20.0200.06720.20
7.0.10.0070.08320.10
7.0.00.0170.07720.28
5.6.280.0070.07021.04
5.6.250.0130.08020.68
5.6.240.0070.08720.73
5.6.230.0100.08020.71
5.6.220.0100.07320.86
5.6.210.0130.06020.70
5.6.200.0100.07021.23
5.6.190.0030.08321.20
5.6.180.0030.04321.18
5.6.170.0070.08321.11
5.6.160.0130.08021.23
5.6.150.0030.08721.20
5.6.140.0030.09021.33
5.6.130.0130.07721.11
5.6.120.0100.06321.17
5.6.110.0130.08021.10
5.6.100.0100.08021.15
5.6.90.0030.09321.12
5.6.80.0070.06720.59
5.6.70.0030.08020.49
5.6.60.0100.07720.54
5.6.50.0030.07720.61
5.6.40.0130.07320.67
5.6.30.0030.07320.52
5.6.20.0070.07720.58
5.6.10.0070.07720.46
5.6.00.0270.05320.67
5.5.380.0030.07720.47
5.5.370.0100.04720.50
5.5.360.0170.04020.63
5.5.350.0000.08020.64
5.5.340.0230.04321.07
5.5.330.0130.07320.86
5.5.320.0100.06020.89
5.5.310.0130.08021.07
5.5.300.0000.08320.95
5.5.290.0100.08320.79
5.5.280.0070.08320.79
5.5.270.0000.08720.94
5.5.260.0170.07021.04
5.5.250.0170.07720.70
5.5.240.0070.07320.21
5.5.230.0030.06720.23
5.5.220.0100.08020.37
5.5.210.0000.05720.25
5.5.200.0130.07320.25
5.5.190.0100.07020.45
5.5.180.0070.08320.43
5.5.160.0100.07720.42
5.5.150.0070.07320.23
5.5.140.0070.08020.39
5.5.130.0100.06020.41
5.5.120.0130.06720.24
5.5.110.0030.09020.27
5.5.100.0070.08020.33
5.5.90.0030.05020.16
5.5.80.0030.08720.19
5.5.70.0070.06720.18
5.5.60.0200.06320.32
5.5.50.0070.07720.29
5.5.40.0100.07020.20
5.5.30.0030.08320.15
5.5.20.0100.04320.27
5.5.10.0200.06320.12
5.5.00.0100.07720.14
5.4.450.0130.07319.57
5.4.440.0000.07319.39
5.4.430.0000.09019.58
5.4.420.0170.06719.57
5.4.410.0030.07719.42
5.4.400.0100.07719.10
5.4.390.0100.07319.21
5.4.380.0070.07318.92
5.4.370.0070.07319.25
5.4.360.0030.08319.16
5.4.350.0130.05718.89
5.4.340.0100.07719.08
5.4.320.0100.05319.15
5.4.310.0100.07319.23
5.4.300.0200.06719.24
5.4.290.0000.05719.20
5.4.280.0070.08019.15
5.4.270.0070.04319.07
5.4.260.0100.07319.07
5.4.250.0100.07719.21
5.4.240.0070.08019.23
5.4.230.0200.05319.25
5.4.220.0000.08019.05
5.4.210.0070.07019.23
5.4.200.0000.08318.92
5.4.190.0230.06318.91
5.4.180.0070.07319.05
5.4.170.0030.08319.19
5.4.160.0130.07019.22
5.4.150.0070.05018.88
5.4.140.0030.07716.54
5.4.130.0030.05016.47
5.4.120.0170.06316.61
5.4.110.0100.07016.56
5.4.100.0000.07016.45
5.4.90.0030.04016.56
5.4.80.0030.08316.46
5.4.70.0030.07016.54
5.4.60.0100.06016.53
5.4.50.0070.04316.41
5.4.40.0130.05016.63
5.4.30.0100.04016.34
5.4.20.0100.07016.55
5.4.10.0130.06716.52
5.4.00.0170.06716.07
5.3.290.0130.03714.61
5.3.280.0100.07714.72
5.3.270.0100.06314.79
5.3.260.0200.06714.59
5.3.250.0130.07314.58
5.3.240.0070.08014.70
5.3.230.0200.04014.71
5.3.220.0070.07014.68
5.3.210.0130.04014.66
5.3.200.0170.06314.61
5.3.190.0030.08314.55
5.3.180.0070.06314.67
5.3.170.0170.07014.72
5.3.160.0070.07714.68
5.3.150.0030.07714.69
5.3.140.0200.06714.69
5.3.130.0100.07314.73
5.3.120.0070.06314.49
5.3.110.0030.07314.74
5.3.100.0100.07314.18
5.3.90.0030.06714.11
5.3.80.0070.07013.99
5.3.70.0130.06714.09
5.3.60.0070.06714.05
5.3.50.0070.07314.13
5.3.40.0100.07313.92
5.3.30.0070.06314.09
5.3.20.0000.06313.81
5.3.10.0070.07313.85
5.3.00.0100.05713.68
5.2.170.0000.05311.28
5.2.160.0030.06311.40
5.2.150.0100.06011.11
5.2.140.0100.06711.25
5.2.130.0100.06011.30
5.2.120.0000.06311.29
5.2.110.0030.05311.07
5.2.100.0070.05011.32
5.2.90.0030.06711.19
5.2.80.0030.06711.07
5.2.70.0070.03311.05
5.2.60.0030.06311.24
5.2.50.0030.03710.96
5.2.40.0000.06311.14
5.2.30.0070.06311.07
5.2.20.0000.04311.07
5.2.10.0030.05711.10
5.2.00.0000.06310.79
5.1.60.0000.05710.23
5.1.50.0030.05310.10
5.1.40.0070.05010.11
5.1.30.0100.05010.50
5.1.20.0130.05010.41
5.1.10.0070.03010.20
5.1.00.0030.05010.31
5.0.50.0030.0279.61
5.0.40.0100.0379.61
5.0.30.0070.0609.61
5.0.20.0030.0439.61
5.0.10.0070.0439.61
5.0.00.0000.0639.61
4.4.90.0000.0379.61
4.4.80.0000.0409.61
4.4.70.0030.0279.61
4.4.60.0030.0239.61
4.4.50.0030.0379.61
4.4.40.0070.0509.61
4.4.30.0030.0339.61
4.4.20.0000.0379.61
4.4.10.0000.0379.61
4.4.00.0030.0409.61
4.3.110.0000.0339.61
4.3.100.0030.0379.61
4.3.90.0000.0379.61
4.3.80.0030.0509.61
4.3.70.0030.0379.61
4.3.60.0030.0339.61
4.3.50.0070.0209.61
4.3.40.0030.0509.61
4.3.30.0000.0379.61
4.3.20.0000.0379.61
4.3.10.0030.0339.61
4.3.00.0000.0309.61

preferences:
42.96 ms | 401 KiB | 5 Q