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->saveXML();

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.0040.01117.13
8.3.50.0140.00522.24
8.3.40.0090.00618.92
8.3.30.0040.01119.19
8.3.20.0070.00020.40
8.3.10.0040.00423.86
8.3.00.0040.00422.70
8.2.180.0200.00616.75
8.2.170.0090.00622.96
8.2.160.0070.00720.63
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0060.00826.16
8.2.120.0040.00422.57
8.2.110.0080.00321.37
8.2.100.0030.00917.97
8.2.90.0040.00419.47
8.2.80.0030.00617.97
8.2.70.0000.00817.88
8.2.60.0000.00818.18
8.2.50.0040.00418.07
8.2.40.0030.00618.59
8.2.30.0040.00418.30
8.2.20.0000.00717.96
8.2.10.0080.00018.13
8.2.00.0000.00717.93
8.1.280.0090.00925.92
8.1.270.0040.00423.87
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0060.00322.32
8.1.230.0040.00819.13
8.1.220.0050.00317.91
8.1.210.0050.00318.77
8.1.200.0030.00617.60
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0040.00418.82
8.1.160.0000.00722.29
8.1.150.0040.00418.91
8.1.140.0040.00417.77
8.1.130.0030.00318.04
8.1.120.0040.00417.57
8.1.110.0000.00817.56
8.1.100.0070.00017.64
8.1.90.0040.00417.58
8.1.80.0000.00717.73
8.1.70.0040.00417.73
8.1.60.0030.00617.83
8.1.50.0030.00617.79
8.1.40.0000.00817.82
8.1.30.0060.00317.80
8.1.20.0000.00917.79
8.1.10.0040.00417.91
8.1.00.0040.00417.86
8.0.300.0000.00820.36
8.0.290.0040.00417.00
8.0.280.0040.00418.72
8.0.270.0070.00017.50
8.0.260.0000.00817.06
8.0.250.0030.00317.12
8.0.240.0020.00517.27
8.0.230.0030.00317.19
8.0.220.0070.00016.98
8.0.210.0030.00317.20
8.0.200.0030.00717.22
8.0.190.0000.00917.24
8.0.180.0000.00717.16
8.0.170.0040.00417.22
8.0.160.0050.00217.17
8.0.150.0000.00716.98
8.0.140.0070.00017.07
8.0.130.0030.00313.52
8.0.120.0030.00517.09
8.0.110.0000.00717.05
8.0.100.0030.00516.95
8.0.90.0040.00417.05
8.0.80.0170.00017.09
8.0.70.0040.00417.11
8.0.60.0050.00316.96
8.0.50.0070.00017.17
8.0.30.0050.01317.30
8.0.20.0110.00817.44
8.0.10.0040.00417.31
8.0.00.0110.00816.81
7.4.330.0000.00515.35
7.4.320.0030.00316.91
7.4.300.0060.00016.73
7.4.290.0000.00716.79
7.4.280.0070.00016.75
7.4.270.0070.00016.79
7.4.260.0070.00016.62
7.4.250.0040.00416.78
7.4.240.0040.00416.81
7.4.230.0000.00716.83
7.4.220.0120.00616.73
7.4.210.0080.00616.89
7.4.200.0000.00716.70
7.4.190.0000.00717.02
7.4.160.0130.00716.77
7.4.150.0080.00917.40
7.4.140.0100.01317.86
7.4.130.0090.00916.71
7.4.120.0080.00916.64
7.4.110.0100.00716.73
7.4.100.0120.00616.84
7.4.90.0120.00916.73
7.4.80.0090.00919.39
7.4.70.0150.00716.71
7.4.60.0100.01016.61
7.4.50.0030.00316.96
7.4.40.0000.01222.77
7.4.30.0130.00416.52
7.4.00.0090.00614.86
7.3.330.0030.00213.33
7.3.320.0030.00313.36
7.3.310.0080.00016.39
7.3.300.0000.00716.54
7.3.290.0100.00716.49
7.3.280.0090.01116.50
7.3.270.0130.00617.40
7.3.260.0270.01816.38
7.3.250.0120.00616.67
7.3.240.0100.01016.68
7.3.230.0100.00716.45
7.3.210.0060.01116.51
7.3.200.0160.00419.39
7.3.190.0070.01016.77
7.3.180.0060.00916.43
7.3.170.0160.00016.56
7.3.160.0130.00916.92
7.3.120.0030.01014.66
7.3.10.0110.00416.64
7.3.00.0090.00316.56
7.2.330.0120.00517.02
7.2.320.0130.00316.66
7.2.310.0030.01317.07
7.2.300.0120.00616.66
7.2.290.0130.00317.04
7.2.130.0080.00817.09
7.2.120.0070.00716.98
7.2.110.0000.01217.09
7.2.100.0040.01117.13
7.2.90.0030.00616.67
7.2.80.0070.00717.27
7.2.70.0070.00316.94
7.2.60.0000.01216.99
7.2.50.0000.01316.77
7.2.40.0060.00317.13
7.2.30.0000.01417.18
7.2.20.0030.01017.01
7.2.10.0070.00716.83
7.2.00.0070.01016.85
7.1.250.0060.00615.93
7.1.70.0030.00517.36
7.1.60.0100.01319.29
7.1.50.0230.01334.92
7.1.00.0070.07022.54
7.0.200.0030.01016.61
7.0.140.0000.07722.15
7.0.60.0030.09020.00
7.0.50.0030.04318.01
7.0.40.0100.08320.11
7.0.30.0370.06320.39
7.0.20.0200.05020.28
7.0.10.0300.08320.41
7.0.00.0130.05320.21
5.6.280.0000.08021.32
5.6.210.0100.03320.67
5.6.200.0000.05718.31
5.6.190.0070.04020.54
5.6.180.0130.07320.61
5.6.170.0270.07320.49
5.6.160.0070.05720.68
5.6.150.0130.07018.27
5.6.140.0100.07018.30
5.6.130.0130.07718.27
5.6.120.0170.07321.05
5.6.110.0100.06021.13
5.6.100.0030.07021.10
5.6.90.0070.08021.16
5.6.80.0070.08720.52
5.6.70.0270.07320.62
5.5.350.0000.08320.55
5.5.340.0030.04718.11
5.5.330.0030.04020.65
5.5.320.0100.05020.52
5.5.310.0370.06320.28
5.5.300.0070.03718.06
5.5.290.0170.06318.10
5.5.280.0130.05721.01
5.5.270.0170.04020.89
5.5.260.0030.05020.93
5.5.250.0000.04320.84
5.5.240.0100.06020.43
5.4.450.0670.05019.64
5.4.440.0730.05719.52
5.4.430.0300.05019.53
5.4.420.0700.06019.56
5.4.410.0700.04719.56
5.4.400.0570.05719.37
5.4.390.0870.07319.34
5.4.380.0100.06018.88
5.4.370.0130.05718.55
5.4.360.0130.05718.77
5.4.350.0130.05718.87
5.4.340.0300.06318.80
5.4.320.0050.03812.69
5.4.310.0090.03512.68
5.4.300.0050.04512.68
5.4.290.0100.05512.68
5.4.280.0060.04212.58
5.4.270.0050.04212.58
5.4.260.0040.04412.58
5.4.250.0050.05012.58
5.4.240.0070.03712.58
5.4.230.0030.04612.57
5.4.220.0020.04012.57
5.4.210.0180.04012.55
5.4.200.0170.04312.56
5.4.190.0150.04312.55
5.4.180.0180.04312.55
5.4.170.0140.04512.56
5.4.160.0110.04912.55
5.4.150.0120.04812.55
5.4.140.0180.04012.23
5.4.130.0320.08912.23
5.4.120.0210.03612.18
5.4.110.0160.04112.18
5.4.100.0160.04212.18
5.4.90.0170.04112.18
5.4.80.0190.04212.18
5.4.70.0130.04412.17
5.4.60.0280.09112.18
5.4.50.0160.04012.17
5.4.40.0140.04312.16
5.4.30.0190.04212.16
5.4.20.0170.04212.16
5.4.10.0140.04312.16
5.4.00.0160.04311.66
5.3.290.0050.04112.95
5.3.280.0070.04512.87
5.3.270.0140.04712.87
5.3.260.0170.04312.88
5.3.250.0160.04412.87
5.3.240.0190.04412.87
5.3.230.0170.04812.86
5.3.220.0220.04412.83
5.3.210.0160.04712.83
5.3.200.0350.08512.82
5.3.190.0160.04612.83
5.3.180.0120.04912.82
5.3.170.0170.04312.82
5.3.160.0150.04412.82
5.3.150.0220.03812.83
5.3.140.0170.04212.82
5.3.130.0160.04512.82
5.3.120.0280.06312.82
5.3.110.0130.04812.81
5.3.100.0150.04512.30
5.3.90.0200.03912.29
5.3.80.0180.04312.27
5.3.70.0220.03812.27
5.3.60.0290.09312.25
5.3.50.0210.03812.20
5.3.40.0180.04212.20
5.3.30.0130.04412.17
5.3.20.0150.04511.94
5.3.10.0130.04811.91
5.3.00.0170.04311.89
5.2.170.0150.0349.40
5.2.160.0150.0349.40
5.2.150.0370.0749.40
5.2.140.0200.0309.39
5.2.130.0140.0409.36
5.2.120.0160.0359.36
5.2.110.0150.0359.36
5.2.100.0120.0369.36
5.2.90.0250.0439.36
5.2.80.0420.0729.35
5.2.70.0140.0359.35
5.2.60.0170.0329.31
5.2.50.0140.0379.28
5.2.40.0180.0369.25
5.2.30.0150.0349.23
5.2.20.0140.0339.22
5.2.10.0140.0339.14
5.2.00.0130.0328.99
5.1.60.0110.0328.29
5.1.50.0110.0308.28
5.1.40.0100.0308.26
5.1.30.0100.0348.61
5.1.20.0090.0368.63
5.1.10.0160.0268.36
5.1.00.0120.0298.35
5.0.50.0070.0276.83
5.0.40.0090.0236.69
5.0.30.0210.0846.51
5.0.20.0090.0246.48
5.0.10.0120.0216.45
5.0.00.0120.0326.45
4.4.90.0050.0194.77
4.4.80.0090.0154.76
4.4.70.0050.0204.75
4.4.60.0060.0214.75
4.4.50.0090.0164.77
4.4.40.0080.0274.71
4.4.30.0080.0174.76
4.4.20.0080.0174.84
4.4.10.0070.0204.85
4.4.00.0070.0284.76
4.3.110.0080.0164.67
4.3.100.0060.0184.67
4.3.90.0060.0184.63
4.3.80.0100.0264.58
4.3.70.0090.0154.63
4.3.60.0110.0134.63
4.3.50.0040.0204.63
4.3.40.0090.0274.54
4.3.30.0050.0183.29
4.3.20.0070.0163.27
4.3.10.0050.0183.23
4.3.00.0430.03013.43

preferences:
39.95 ms | 401 KiB | 5 Q