3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oPricingInfoNode = new DOMDocument(); $oPricingInfoNode->loadXML(' <air:AirPricingInfo xmlns:air="http://www.travelport.com/schema/air_v22_0" xmlns:com="http://www.travelport.com/schema/common_v19_0" Key="4T" TotalPrice="EUR50.99" BasePrice="EUR2.00" ApproximateTotalPrice="EUR50.99" ApproximateBasePrice="EUR2.0 0" Taxes="EUR48.99" LatestTicketingTime="2013-10-27T23:59:00.000+00:00" PricingMethod="Auto" ProviderCode="1P"> <air:FareInfo Key="6T" FareBasis="PBE604K" PassengerTypeCode="ADT" Origin="BRU" Destination="MAD" EffectiveDate="2013-10-26T20:36: 45.370+02:00" Amount="NUC1.31"> <air:FareRuleKey FareInfoRef="6T" ProviderCode="1P">3Dxtd/jsY9Lo40qgTiQTot3Ga9aZj+SyHmN4mO25YCrug9CQWuP+X2+oD5t4/MZlfXbbvYG4TG43 VNwAhz2PnWmWLv0xpQB8</air:FareRuleKey> </air:FareInfo> <air:FareInfo Key="7T" FareBasis="PBE604K" PassengerTypeCode="ADT" Origin="MAD" Destination="BRU" EffectiveDate="2013-10-26T20:36: 45.370+02:00" Amount="NUC1.31"> <air:FareRuleKey FareInfoRef="7T" ProviderCode="1P">3Dxtd/jsY9Lo40qgTiQTot3Ga9aZj+Syda+Y0VQMYBHug9CQWuP+X2+oD5t4/MZlfXbbvYG4TG43 VNwAhz2PnWmWLv0xpQB8</air:FareRuleKey> </air:FareInfo> <air:BookingInfo BookingCode="P" FareInfoRef="6T" SegmentRef="2T" Origin="BRU" Destination="MAD" /> <air:BookingInfo BookingCode="P" FareInfoRef="7T" SegmentRef="3T" Origin="MAD" Destination="BRU" /> </air:AirPricingInfo>'); # <air:AirPricingModifiers FaresIndicator="PublicAndPrivateFares" /> $oAirPricingModifiersNode = $oPricingInfoNode->createElement("air:AirPricingModifiers"); $oAirPricingModifiersNode->setAttribute("FareIndicator", "PublicAndPrivateFares"); $oPricingInfoNode->insertBefore($oAirPricingModifiersNode, $oPricingInfoNode->firstChild); echo $oPricingInfoNode->firstChild->nodeName;

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.0100.01016.75
8.3.50.0140.00717.63
8.3.40.0070.00718.92
8.3.30.0090.00618.97
8.3.20.0000.00818.91
8.3.10.0100.00020.69
8.3.00.0060.00319.26
8.2.180.0100.01016.75
8.2.170.0100.00722.96
8.2.160.0070.00720.59
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.02019.52
8.2.110.0040.00419.52
8.2.100.0070.00417.97
8.2.90.0030.00619.28
8.2.80.0000.00719.50
8.2.70.0060.00317.63
8.2.60.0060.00318.29
8.2.50.0040.00418.07
8.2.40.0050.00518.34
8.2.30.0090.00018.32
8.2.20.0000.00917.88
8.2.10.0000.00717.97
8.2.00.0060.00617.87
8.1.280.0060.01225.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0000.01222.13
8.1.230.0080.00322.87
8.1.220.0000.00817.79
8.1.210.0000.00818.97
8.1.200.0030.00617.48
8.1.190.0050.00317.66
8.1.180.0030.00618.10
8.1.170.0050.00319.09
8.1.160.0000.00719.01
8.1.150.0040.00418.78
8.1.140.0070.00017.58
8.1.130.0000.00818.12
8.1.120.0000.00717.66
8.1.110.0060.00317.55
8.1.100.0040.00417.51
8.1.90.0040.00417.72
8.1.80.0000.00817.73
8.1.70.0070.00017.65
8.1.60.0030.00517.73
8.1.50.0000.00817.54
8.1.40.0040.00417.76
8.1.30.0040.00417.75
8.1.20.0040.00417.82
8.1.10.0040.00417.68
8.1.00.0000.00817.61
8.0.300.0040.00420.23
8.0.290.0000.00717.00
8.0.280.0030.00418.63
8.0.270.0040.00417.48
8.0.260.0000.00717.04
8.0.250.0070.00017.11
8.0.240.0000.00717.21
8.0.230.0000.00717.07
8.0.220.0030.00316.98
8.0.210.0040.00417.11
8.0.200.0030.00317.13
8.0.190.0000.00817.13
8.0.180.0000.00717.14
8.0.170.0030.00617.04
8.0.160.0000.00717.15
8.0.150.0000.00817.05
8.0.140.0070.00016.88
8.0.130.0000.00513.51
8.0.120.0020.00517.06
8.0.110.0050.00316.93
8.0.100.0030.00316.90
8.0.90.0070.00016.93
8.0.80.0040.01217.03
8.0.70.0030.00517.05
8.0.60.0040.00417.08
8.0.50.0070.00017.02
8.0.30.0130.00717.56
8.0.20.0130.00717.33
8.0.10.0000.00717.08
8.0.00.0160.00617.00
7.4.330.0020.00213.19
7.4.320.0030.00316.62
7.4.300.0000.00716.64
7.4.290.0080.00016.83
7.4.280.0030.00616.73
7.4.270.0000.00816.70
7.4.260.0000.00713.51
7.4.250.0000.00816.84
7.4.240.0040.00416.82
7.4.230.0000.00716.72
7.4.220.0100.01616.66
7.4.210.0070.00916.72
7.4.200.0070.00016.92
7.4.190.0030.00516.96
7.4.160.0060.01116.62
7.4.150.0120.00616.62
7.4.140.0090.00816.66
7.4.130.0100.00716.67
7.4.120.0060.01116.55
7.4.110.0030.01416.79
7.4.100.0110.00516.65
7.4.90.0120.00616.64
7.4.80.0130.00719.39
7.4.70.0090.01216.73
7.4.60.0160.00316.72
7.4.50.0080.00016.73
7.4.40.0100.00316.77
7.4.30.0060.00916.75
7.4.00.0080.00915.28
7.3.330.0030.00313.29
7.3.320.0000.00613.21
7.3.310.0030.00316.50
7.3.300.0030.00316.41
7.3.290.0030.01216.53
7.3.280.0120.00716.43
7.3.270.0150.00316.86
7.3.260.0060.01116.74
7.3.250.0140.00316.65
7.3.240.0150.00716.46
7.3.230.0060.01016.69
7.3.210.0100.00616.55
7.3.200.0160.00616.79
7.3.190.0030.01316.64
7.3.180.0070.01016.46
7.3.170.0060.01216.67
7.3.160.0030.01316.76
7.3.120.0060.01114.92
7.3.10.0120.00316.22
7.3.00.0150.00916.30
7.2.330.0190.00716.82
7.2.320.0190.00416.98
7.2.310.0110.00916.69
7.2.300.0100.01317.00
7.2.290.0030.01216.92
7.2.130.0180.00716.39
7.2.120.0100.01016.82
7.2.110.0150.00716.36
7.2.100.0100.00716.72
7.2.90.0090.00616.36
7.2.80.0170.00316.62
7.2.70.0080.00816.72
7.2.60.0040.01216.93
7.2.50.0200.00016.42
7.2.40.0100.00617.07
7.2.30.0090.00616.73
7.2.20.0120.00616.68
7.2.10.0030.00916.35
7.2.00.0060.00718.21
7.1.250.0130.00315.23
7.1.100.0030.01118.09
7.1.70.0720.00315.23
7.1.60.0100.01019.40
7.1.50.0060.01017.02
7.1.00.0030.03322.59
7.0.200.0590.00314.88
7.0.140.0070.07022.11
7.0.120.0000.04322.13
7.0.60.0070.08320.13
7.0.50.0030.04317.98
7.0.40.0030.04017.88
7.0.30.0000.04317.87
7.0.20.0070.03717.82
7.0.10.0030.04017.80
7.0.00.0000.04317.81
5.6.280.0030.07021.19
5.6.210.0070.08320.82
5.6.200.0000.04318.34
5.6.190.0030.04018.20
5.6.180.0000.04318.22
5.6.170.0030.04018.27
5.6.160.0030.04018.27
5.6.150.0070.03718.32
5.6.140.0000.05318.23
5.6.130.0130.06718.19
5.6.120.0030.08318.21
5.6.110.0070.06318.24
5.6.100.0130.07018.23
5.6.90.0070.08318.24
5.6.80.0100.07317.63
5.6.70.0070.06017.68
5.6.60.0100.03317.67
5.6.50.0070.07317.68
5.6.40.0070.08017.63
5.6.30.0000.07317.64
5.6.20.0000.04317.64
5.6.10.0030.05017.62
5.6.00.0070.07317.54
5.5.350.0400.06720.43
5.5.340.0100.03718.04
5.5.330.0000.04018.09
5.5.320.0000.04018.06
5.5.310.0000.04018.12
5.5.300.0130.04318.05
5.5.290.0030.05718.07
5.5.280.0070.05718.05
5.5.270.0070.06718.06
5.5.260.0070.07318.14
5.5.250.0030.06017.89
5.5.240.0070.07717.49
5.5.230.0030.04717.42
5.5.220.0070.08017.53
5.5.210.0030.05317.38
5.5.200.0130.06717.36
5.5.190.0100.04317.38
5.5.180.0030.04317.38
5.5.160.0070.04717.38
5.5.150.0100.07317.35
5.5.140.0200.06017.40
5.5.130.0000.05317.45
5.5.120.0030.05317.45
5.5.110.0070.07317.34
5.5.100.0200.06317.36
5.5.90.0000.04717.31
5.5.80.0070.07717.29
5.5.70.0000.06717.27
5.5.60.0030.06017.31
5.5.50.0100.07317.34
5.5.40.0070.06017.34
5.5.30.0070.03317.28
5.5.20.0030.03717.30
5.5.10.0000.04717.36
5.5.00.0030.04017.38
5.4.450.0030.05719.45
5.4.440.0070.07019.61
5.4.430.0070.07019.45
5.4.420.0070.04719.45
5.4.410.0170.06719.36
5.4.400.0100.06719.18
5.4.390.0070.07319.16
5.4.380.0100.05018.97
5.4.370.0000.04719.14
5.4.360.0130.07319.13
5.4.350.0070.03718.91
5.4.340.0030.05019.27
5.4.320.0170.06719.14
5.4.310.0030.06719.14
5.4.300.0130.07019.24
5.4.290.0070.04319.18
5.4.280.0130.05319.15
5.4.270.0030.05019.11
5.4.260.0100.07018.97
5.4.250.0100.06019.11
5.4.240.0030.08019.19
5.4.230.0070.07319.23
5.4.220.0170.05719.11
5.4.210.0070.07719.32
5.4.200.0100.07319.15
5.4.190.0000.04019.06
5.4.180.0030.03719.16
5.4.170.0000.04319.06
5.4.160.0000.05319.15
5.4.150.0000.04319.16
5.4.140.0070.05016.59
5.4.130.0000.04316.46
5.4.120.0070.04016.61
5.4.110.0070.08016.48
5.4.100.0030.08016.51
5.4.90.0070.04716.63
5.4.80.0030.05716.38
5.4.70.0070.04316.52
5.4.60.0030.07316.63
5.4.50.0070.04316.36
5.4.40.0030.07016.46
5.4.30.0000.05716.49
5.4.20.0170.05716.63
5.4.10.0030.07716.48
5.4.00.0070.06315.88
5.3.290.0030.04714.57
5.3.280.0030.04014.50
5.3.270.0030.03714.70
5.3.260.0030.07314.52
5.3.250.0070.03714.77
5.3.240.0030.04014.52
5.3.230.0100.06314.67
5.3.220.0030.06714.48
5.3.210.0100.07314.73
5.3.200.0030.08314.61
5.3.190.0100.06314.70
5.3.180.0030.07014.73
5.3.170.0000.08014.68
5.3.160.0070.05014.63
5.3.150.0000.05714.49
5.3.140.0130.05714.61
5.3.130.0030.07714.57
5.3.120.0130.07014.57
5.3.110.0000.08014.55
5.3.100.0030.05014.08
5.3.90.0030.03714.18
5.3.80.0100.05714.13
5.3.70.0000.04014.05
5.3.60.0070.06313.86
5.3.50.0030.07313.79
5.3.40.0070.06013.88
5.3.30.0070.04313.98
5.3.20.0230.03013.55
5.3.10.0130.05013.77
5.3.00.0000.07713.68
5.2.170.0030.03711.36
5.2.160.0030.04311.32
5.2.150.0000.04011.21
5.2.140.0000.05711.36
5.2.130.0130.05311.19
5.2.120.0000.06711.19
5.2.110.0000.03711.00
5.2.100.0070.05711.00
5.2.90.0030.04011.15
5.2.80.0070.06311.20
5.2.70.0000.05311.13
5.2.60.0130.02311.15
5.2.50.0000.05311.02
5.2.40.0100.05311.04
5.2.30.0000.06711.14
5.2.20.0100.05711.14
5.2.10.0030.06310.94
5.2.00.0070.05710.88
5.1.60.0100.04710.12
5.1.50.0070.04710.16
5.1.40.0000.04310.10
5.1.30.0100.04710.46
5.1.20.0030.03010.57
5.1.10.0070.02310.10
5.1.00.0070.03010.18
5.0.50.0000.0278.52
5.0.40.0030.0478.50
5.0.30.0100.0638.39
5.0.20.0030.0308.39
5.0.10.0070.0438.41
5.0.00.0030.0538.39
4.4.90.0000.0378.39
4.4.80.0000.0378.39
4.4.70.0030.0208.39
4.4.60.0030.0338.39
4.4.50.0000.0238.39
4.4.40.0030.0278.39
4.4.30.0070.0238.39
4.4.20.0070.0108.39
4.4.10.0000.0208.39
4.4.00.0000.0278.39
4.3.110.0030.0308.39
4.3.100.0070.0238.39
4.3.90.0070.0178.39
4.3.80.0030.0478.39
4.3.70.0000.0278.39
4.3.60.0070.0138.39
4.3.50.0000.0278.39
4.3.40.0070.0338.39
4.3.30.0000.0408.39
4.3.20.0030.0308.39
4.3.10.0070.0238.39
4.3.00.0030.0278.39

preferences:
47.84 ms | 401 KiB | 5 Q