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.0090.00918.93
8.3.50.0100.00922.17
8.3.40.0090.00619.09
8.3.30.0120.00918.91
8.3.20.0030.00518.93
8.3.10.0080.00021.53
8.3.00.0080.00023.73
8.2.180.0090.01316.88
8.2.170.0090.00622.96
8.2.160.0100.00320.77
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00021.22
8.2.110.0030.01320.77
8.2.100.0040.00818.22
8.2.90.0050.00319.55
8.2.80.0030.00519.52
8.2.70.0080.00017.75
8.2.60.0030.00518.41
8.2.50.0060.00318.07
8.2.40.0040.00418.41
8.2.30.0040.00419.80
8.2.20.0050.00317.96
8.2.10.0000.00717.99
8.2.00.0080.00018.11
8.1.280.0130.00325.92
8.1.270.0000.00723.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00622.55
8.1.230.0090.00321.22
8.1.220.0040.00418.77
8.1.210.0030.00620.79
8.1.200.0090.00017.60
8.1.190.0080.00017.90
8.1.180.0050.00318.10
8.1.170.0000.00818.89
8.1.160.0040.00419.12
8.1.150.0000.00818.95
8.1.140.0040.00417.74
8.1.130.0030.00318.13
8.1.120.0070.00017.78
8.1.110.0050.00317.80
8.1.100.0040.00417.66
8.1.90.0040.00417.71
8.1.80.0000.00717.66
8.1.70.0030.00317.59
8.1.60.0060.00317.84
8.1.50.0040.00417.79
8.1.40.0030.00617.72
8.1.30.0000.00817.97
8.1.20.0050.00317.84
8.1.10.0080.00017.83
8.1.00.0000.00717.87
8.0.300.0040.00420.32
8.0.290.0080.00017.41
8.0.280.0070.00018.70
8.0.270.0030.00317.58
8.0.260.0000.00717.14
8.0.250.0000.00817.37
8.0.240.0000.00917.19
8.0.230.0070.00017.20
8.0.220.0030.00317.28
8.0.210.0030.00417.27
8.0.200.0040.00417.27
8.0.190.0000.00717.34
8.0.180.0000.00717.31
8.0.170.0030.00617.30
8.0.160.0080.00017.11
8.0.150.0030.00517.16
8.0.140.0030.00617.15
8.0.130.0000.00513.67
8.0.120.0030.00617.19
8.0.110.0040.00417.27
8.0.100.0040.00417.33
8.0.90.0050.00317.19
8.0.80.0100.01017.14
8.0.70.0050.00317.33
8.0.60.0000.00817.15
8.0.50.0030.00517.18
8.0.30.0100.00917.26
8.0.20.0090.01317.40
8.0.10.0030.00517.39
8.0.00.0080.01116.85
7.4.330.0000.00616.91
7.4.320.0060.00016.78
7.4.300.0030.00316.72
7.4.290.0030.00316.78
7.4.280.0110.00016.91
7.4.270.0000.00716.81
7.4.260.0060.00013.54
7.4.250.0060.00316.74
7.4.240.0000.00716.74
7.4.230.0000.00716.76
7.4.220.0090.01516.81
7.4.210.0110.00416.82
7.4.200.0000.00916.91
7.4.190.0040.00416.82
7.4.160.0130.00316.92
7.4.150.0070.01117.40
7.4.140.0150.00717.86
7.4.130.0090.01116.92
7.4.120.0090.00916.85
7.4.110.0110.00816.75
7.4.100.0140.00616.65
7.4.90.0110.01216.63
7.4.80.0110.01119.39
7.4.70.0000.01616.80
7.4.60.0100.00616.77
7.4.50.0030.00616.72
7.4.40.0130.00322.77
7.4.30.0180.00316.65
7.4.00.0070.01115.18
7.3.330.0050.00013.46
7.3.320.0000.00613.45
7.3.310.0030.00316.66
7.3.300.0030.00316.57
7.3.290.0090.00616.66
7.3.280.0070.00816.59
7.3.270.0110.01517.40
7.3.260.0130.00618.24
7.3.250.0110.00916.65
7.3.240.0160.00316.64
7.3.230.0100.00716.75
7.3.210.0100.00716.85
7.3.200.0060.01219.39
7.3.190.0150.00916.70
7.3.180.0090.00616.85
7.3.170.0040.01116.95
7.3.160.0070.01016.69
7.3.120.0080.00815.07
7.3.10.0120.00316.81
7.3.00.0070.00716.59
7.2.330.0110.00616.99
7.2.320.0070.01117.11
7.2.310.0150.00916.80
7.2.300.0170.01116.75
7.2.290.0120.00617.02
7.2.130.0050.00517.09
7.2.120.0030.00917.08
7.2.110.0060.00317.09
7.2.100.0090.00017.14
7.2.90.0030.00717.10
7.2.80.0050.00716.88
7.2.70.0000.00917.02
7.2.60.0080.00517.09
7.2.50.0080.00417.01
7.2.40.0070.01017.22
7.2.30.0070.00717.15
7.2.20.0120.00316.94
7.2.10.0100.00317.20
7.2.00.0080.00718.26
7.1.250.0070.00715.98
7.1.240.0070.00416.13
7.1.230.0030.01415.82
7.1.220.0060.00616.14
7.1.210.0110.00416.23
7.1.200.0020.00916.11
7.1.190.0040.00416.04
7.1.180.0030.00916.13
7.1.170.0040.00416.03
7.1.160.0060.00916.05
7.1.150.0150.00015.87
7.1.140.0060.00615.96
7.1.130.0060.00615.64
7.1.120.0080.00815.91
7.1.110.0050.00216.02
7.1.100.0000.01015.99
7.1.90.0060.00615.94
7.1.80.0000.01315.87
7.1.70.0030.00616.81
7.1.60.0020.01116.56
7.1.50.0160.00825.56
7.1.40.0070.00715.92
7.1.30.0060.00816.05
7.1.20.0030.01016.04
7.1.10.0070.00715.97
7.1.00.0010.02119.08
7.0.330.0030.00715.29
7.0.320.0000.01415.72
7.0.310.0060.00315.45
7.0.300.0040.01115.69
7.0.290.0060.00615.43
7.0.280.0070.00715.68
7.0.270.0070.00715.66
7.0.260.0040.00815.59
7.0.250.0030.00915.63
7.0.240.0070.00715.42
7.0.230.0040.00415.63
7.0.220.0110.00415.57
7.0.210.0000.01115.65
7.0.200.0080.00516.22
7.0.190.0120.00315.50
7.0.180.0060.00615.75
7.0.170.0090.00315.65
7.0.160.0140.00015.66
7.0.150.0060.00615.62
7.0.140.0070.03918.92
7.0.130.0070.00315.59
7.0.120.0040.01115.80
7.0.110.0100.00315.52
7.0.100.0120.00015.38
7.0.90.0040.01115.52
7.0.80.0080.00315.63
7.0.70.0070.03217.75
7.0.60.0150.03517.61
7.0.50.0110.02217.88
7.0.40.0030.02616.91
7.0.30.0050.02717.03
7.0.20.0090.02917.00
7.0.10.0050.04516.92
7.0.00.0080.04316.83
5.6.380.0000.01414.31
5.6.370.0040.00414.50
5.6.360.0060.00314.57
5.6.350.0060.00314.88
5.6.340.0090.00614.41
5.6.330.0000.01014.68
5.6.320.0130.00014.75
5.6.310.0040.00714.39
5.6.300.0070.00714.61
5.6.290.0080.00314.38
5.6.280.0100.03517.88
5.6.270.0040.00814.43
5.6.260.0030.00714.28
5.6.250.0120.00314.47
5.6.240.0100.00314.52
5.6.230.0030.01014.27
5.6.220.0080.02817.72
5.6.210.0070.02517.48
5.6.200.0070.04717.96
5.6.190.0040.03617.76
5.6.180.0070.02817.70
5.6.170.0040.04917.89
5.6.160.0030.03517.86
5.6.150.0050.04517.84
5.6.140.0070.03817.90
5.6.130.0090.03217.90
5.6.120.0100.04317.73
5.6.110.0100.03017.74
5.6.100.0100.04017.67
5.6.90.0040.04717.74
5.6.80.0040.03717.38
5.6.70.0020.04717.58
5.6.60.0030.04517.57
5.6.50.0100.04017.36
5.6.40.0080.04117.51
5.6.30.0100.04217.39
5.6.20.0060.03817.37
5.6.10.0080.04217.42
5.6.00.0070.04417.33
5.5.380.0030.00611.13
5.5.370.0060.00010.83
5.5.360.0080.03015.87
5.5.350.0080.04515.97
5.5.340.0040.03116.16
5.5.330.0070.02715.99
5.5.320.0060.04416.09
5.5.310.0070.04016.04
5.5.300.0100.04016.13
5.5.290.0030.04116.08
5.5.280.0070.04216.13
5.5.270.0070.04316.09
5.5.260.0030.03716.16
5.5.250.0110.03915.84
5.5.240.0080.04215.68
5.5.230.0100.04115.83
5.5.220.0060.03815.74
5.5.210.0030.04715.63
5.5.200.0070.04315.76
5.5.190.0110.03815.64
5.5.180.0100.03715.79
5.5.170.0000.00711.00
5.5.160.0080.04515.70
5.5.150.0080.04215.44
5.5.140.0090.04315.60
5.5.130.0110.03315.75
5.5.120.0070.02815.67
5.5.110.0080.04515.60
5.5.100.0030.03215.50
5.5.90.0100.04015.75
5.5.80.0020.04815.79
5.5.70.0100.03715.73
5.5.60.0050.03815.61
5.5.50.0070.04215.73
5.5.40.0110.03815.35
5.5.30.0020.03315.68
5.5.20.0030.04315.66
5.5.10.0060.04215.64
5.5.00.0060.02615.61
5.4.450.0070.04215.49
5.4.440.0080.04315.14
5.4.430.0100.04115.34
5.4.420.0070.04315.42
5.4.410.0050.04415.28
5.4.400.0030.03815.13
5.4.390.0070.04215.23
5.4.380.0010.04615.22
5.4.370.0020.03415.21
5.4.360.0100.03515.11
5.4.350.0030.04115.13
5.4.340.0050.03714.99
5.4.330.0030.00610.84
5.4.320.0030.04414.99
5.4.310.0030.02815.06
5.4.300.0050.04314.99
5.4.290.0080.04015.17
5.4.280.0020.04414.90
5.4.270.0040.04115.17
5.4.260.0060.02715.07
5.4.250.0050.04214.98
5.4.240.0080.04115.20
5.4.230.0080.03015.06
5.4.220.0100.03915.17
5.4.210.0050.04215.15
5.4.200.0030.04215.13
5.4.190.0020.04715.18
5.4.180.0020.04414.99
5.4.170.0150.03214.83
5.4.160.0050.03815.21
5.4.150.0060.02815.12
5.4.140.0060.03813.64
5.4.130.0130.03313.57
5.4.120.0070.03913.85
5.4.110.0090.03813.72
5.4.100.0080.02513.67
5.4.90.0060.01813.58
5.4.80.0030.04113.81
5.4.70.0090.03213.83
5.4.60.0080.03913.85
5.4.50.0050.03213.77
5.4.40.0080.03913.74
5.4.30.0080.02813.80
5.4.20.0070.03913.80
5.4.10.0030.04013.77
5.4.00.0110.03113.46
5.3.290.0070.03412.56
5.3.280.0020.04112.55
5.3.270.0070.02712.68
5.3.260.0030.03712.76
5.3.250.0070.03012.71
5.3.240.0070.04212.67
5.3.230.0030.04012.71
5.3.220.0050.04212.51
5.3.210.0080.03012.65
5.3.200.0020.04812.51
5.3.190.0050.04112.62
5.3.180.0040.03112.62
5.3.170.0060.03512.68
5.3.160.0050.04112.56
5.3.150.0030.04012.56
5.3.140.0070.02512.62
5.3.130.0080.04012.61
5.3.120.0050.04012.67
5.3.110.0090.04212.68
5.3.100.0050.03212.40
5.3.90.0050.03912.42
5.3.80.0040.02712.18
5.3.70.0040.02012.34
5.3.60.0080.03712.35
5.3.50.0050.04012.33
5.3.40.0050.02212.28
5.3.30.0050.03912.15
5.3.20.0030.02512.21
5.3.10.0040.03512.05
5.3.00.0040.02012.01
5.2.170.0030.02511.62
5.2.160.0030.03411.62
5.2.150.0000.03011.62
5.2.140.0080.03211.62
5.2.130.0060.01211.62
5.2.120.0020.01811.62
5.2.110.0040.01911.62
5.2.100.0030.03511.62
5.2.90.0050.03011.62
5.2.80.0030.02311.62
5.2.70.0030.01811.62
5.2.60.0030.02811.62
5.2.50.0030.03211.62
5.2.40.0030.03311.62
5.2.30.0000.02311.62
5.2.20.0030.01611.62
5.2.10.0030.01311.62
5.2.00.0030.02711.62
5.1.60.0000.02411.62
5.1.50.0030.02011.62
5.1.40.0030.03111.62
5.1.30.0050.02811.62
5.1.20.0010.03411.62
5.1.10.0020.03211.62
5.1.00.0020.03211.62
5.0.50.0040.02011.62
5.0.40.0020.02511.62
5.0.30.0000.03411.62
5.0.20.0020.02511.62
5.0.10.0020.02211.62
5.0.00.0030.03511.62
4.4.90.0020.00911.62
4.4.80.0040.01511.62
4.4.70.0030.01311.62
4.4.60.0020.01511.62
4.4.50.0020.01811.62
4.4.40.0030.01811.62
4.4.30.0020.01111.62
4.4.20.0010.01911.62
4.4.10.0030.01811.62
4.4.00.0020.02511.62
4.3.110.0020.02211.62
4.3.100.0020.01511.62
4.3.90.0030.01811.62
4.3.80.0050.02811.62
4.3.70.0020.01311.62
4.3.60.0020.01511.62
4.3.50.0030.01811.62
4.3.40.0050.02511.62
4.3.30.0010.02111.62
4.3.20.0020.02211.62
4.3.10.0030.02011.62
4.3.00.0000.02111.62

preferences:
44.77 ms | 401 KiB | 5 Q