3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oPricingInfoDocument = new DOMDocument(); $oPricingInfoDocument->preserveWhiteSpace = FALSE; $oPricingInfoDocument->formatOutput = TRUE; $oPricingInfoDocument->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>'); $oPricingInfoNode = $oPricingInfoDocument->firstChild; # <air:AirPricingModifiers FaresIndicator="PublicAndPrivateFares" /> $oAirPricingModifiersNode = $oPricingInfoDocument->createElement("air:AirPricingModifiers"); $oAirPricingModifiersNode->setAttribute("FareIndicator", "PublicAndPrivateFares"); $oPricingInfoNode->insertBefore($oAirPricingModifiersNode, $oPricingInfoNode->firstChild); echo $oPricingInfoDocument->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.0060.00918.80
8.3.50.0100.00922.11
8.3.40.0140.00719.09
8.3.30.0070.00720.48
8.3.20.0000.00818.88
8.3.10.0080.00021.29
8.3.00.0090.00020.16
8.2.180.0120.00916.88
8.2.170.0100.00722.96
8.2.160.0030.01020.60
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0040.00420.33
8.2.110.0030.00622.50
8.2.100.0040.00818.16
8.2.90.0080.00018.09
8.2.80.0000.00817.97
8.2.70.0040.00817.75
8.2.60.0080.00018.18
8.2.50.0110.00018.07
8.2.40.0030.00520.20
8.2.30.0040.00421.48
8.2.20.0070.00017.93
8.2.10.0030.00518.02
8.2.00.0000.00817.98
8.1.280.0090.00625.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00922.31
8.1.230.0080.00421.15
8.1.220.0000.00818.04
8.1.210.0030.00619.08
8.1.200.0030.00617.61
8.1.190.0040.00417.77
8.1.180.0000.00818.10
8.1.170.0000.00718.84
8.1.160.0050.00219.14
8.1.150.0030.00618.90
8.1.140.0040.00417.59
8.1.130.0000.00818.14
8.1.120.0040.00417.73
8.1.110.0000.00717.69
8.1.100.0000.00717.58
8.1.90.0000.00717.57
8.1.80.0030.00617.70
8.1.70.0000.00717.72
8.1.60.0000.00717.82
8.1.50.0000.00817.77
8.1.40.0000.00817.80
8.1.30.0050.00317.88
8.1.20.0080.00017.90
8.1.10.0000.00817.72
8.1.00.0000.00817.67
8.0.300.0000.00820.11
8.0.290.0040.00417.43
8.0.280.0030.00318.72
8.0.270.0030.00317.46
8.0.260.0070.00017.09
8.0.250.0040.00417.28
8.0.240.0060.00417.17
8.0.230.0000.00717.20
8.0.220.0000.00617.12
8.0.210.0000.00817.13
8.0.200.0000.00617.07
8.0.190.0060.00317.18
8.0.180.0070.00016.94
8.0.170.0040.00416.96
8.0.160.0080.00017.05
8.0.150.0000.00716.95
8.0.140.0040.00417.10
8.0.130.0030.00313.44
8.0.120.0040.00416.91
8.0.110.0040.00417.08
8.0.100.0000.00717.03
8.0.90.0070.00017.19
8.0.80.0130.01016.98
8.0.70.0000.00717.18
8.0.60.0070.00016.94
8.0.50.0040.00417.14
8.0.30.0130.00917.44
8.0.20.0080.01617.45
8.0.10.0020.00517.32
8.0.00.0100.01017.03
7.4.330.0020.00216.98
7.4.320.0030.00316.86
7.4.300.0000.00616.71
7.4.290.0000.00716.86
7.4.280.0030.00316.76
7.4.270.0050.00316.93
7.4.260.0030.00313.56
7.4.250.0030.00616.65
7.4.240.0030.00316.87
7.4.230.0070.00016.87
7.4.220.0090.00916.82
7.4.210.0090.00816.87
7.4.200.0030.00316.67
7.4.190.0030.00316.68
7.4.160.0130.00716.78
7.4.150.0100.00917.40
7.4.140.0130.00517.86
7.4.130.0100.00716.66
7.4.120.0140.00716.88
7.4.110.0060.01016.59
7.4.100.0070.01016.82
7.4.90.0080.01516.79
7.4.80.0080.01119.39
7.4.70.0160.00316.75
7.4.60.0060.00916.59
7.4.50.0080.00016.64
7.4.40.0030.01022.77
7.4.30.0090.01316.71
7.4.00.0060.00615.04
7.3.330.0030.00313.39
7.3.320.0000.00613.23
7.3.310.0040.00416.39
7.3.300.0030.00316.54
7.3.290.0150.00016.48
7.3.280.0050.01116.59
7.3.270.0110.01417.40
7.3.260.0120.01218.24
7.3.250.0110.00616.56
7.3.240.0070.01016.56
7.3.230.0100.00716.74
7.3.210.0210.00016.87
7.3.200.0060.01719.39
7.3.190.0110.01116.56
7.3.180.0030.01816.68
7.3.170.0070.00716.43
7.3.160.0130.01016.57
7.3.120.0050.00314.95
7.2.330.0030.01416.75
7.2.320.0110.00817.04
7.2.310.0060.01216.81
7.2.300.0120.00316.75
7.2.290.0030.01316.98
7.2.00.0060.00919.27
7.1.100.0000.01318.50
7.1.70.0050.00317.25
7.1.60.0090.00919.24
7.1.50.0100.01316.76
7.1.00.0030.03322.54
7.0.200.0030.00616.77
7.0.140.0000.07322.06
7.0.100.0030.08719.97
7.0.90.0030.06320.21
7.0.80.0000.08020.03
7.0.70.0300.08320.16
7.0.60.0100.07320.00
7.0.50.0270.07320.39
7.0.40.0130.07720.28
7.0.30.0030.04020.20
7.0.20.0100.08020.11
7.0.10.0100.03320.19
7.0.00.0070.08720.14
5.6.250.0000.06320.61
5.6.240.0100.07320.80
5.6.230.0170.03320.89
5.6.220.0030.08720.66
5.6.210.0030.05320.70
5.6.200.0070.04021.13
5.6.190.0100.08021.08
5.6.180.0070.07721.23
5.6.170.0030.04021.13
5.6.160.0070.06721.13
5.6.150.0200.06021.16
5.6.140.0100.07321.16
5.6.130.0130.08321.16
5.6.120.0100.05321.10
5.6.110.0070.09021.14
5.6.100.0100.08021.22
5.6.90.0170.07721.05
5.6.80.0000.05020.40
5.6.70.0100.08020.45
5.6.60.0030.04320.52
5.6.50.0100.07320.67
5.6.40.0030.04320.46
5.6.30.0030.07320.47
5.6.20.0100.05720.48
5.6.10.0030.04720.46
5.6.00.0270.05720.50
5.5.380.0100.07720.42
5.5.370.0030.07020.57
5.5.360.0000.04320.58
5.5.350.0070.08020.47
5.5.340.0130.07721.01
5.5.330.0070.05720.86
5.5.320.0070.08321.04
5.5.310.0070.03720.88
5.5.300.0070.08321.01
5.5.290.0100.07720.94
5.5.280.0000.09020.97
5.5.270.0100.07721.03
5.5.260.0000.06320.98
5.5.250.0170.07320.60
5.5.240.0130.05720.21
5.5.230.0100.04020.20
5.5.220.0070.07320.38
5.5.210.0070.04320.17
5.5.200.0130.03020.21
5.5.190.0070.08020.21
5.5.180.0070.05320.34
5.5.160.0070.04720.14
5.5.150.0130.06020.14
5.5.140.0030.04720.39
5.5.130.0070.04720.23
5.5.120.0070.07720.33
5.5.110.0070.08720.30
5.5.100.0100.05320.16
5.5.90.0130.06320.22
5.5.80.0070.04320.19
5.5.70.0130.06020.13
5.5.60.0100.06020.26
5.5.50.0100.07320.08
5.5.40.0130.07320.23
5.5.30.0070.07720.16
5.5.20.0270.03020.22
5.5.10.0100.06320.11
5.5.00.0130.05720.09
5.4.450.0000.04319.50
5.4.440.0000.05019.53
5.4.430.0000.04319.19
5.4.420.0170.06019.65
5.4.410.0100.05019.32
5.4.400.0000.07319.13
5.4.390.0000.07718.89
5.4.380.0030.06719.33
5.4.370.0030.04019.19
5.4.360.0070.07319.17
5.4.350.0070.07018.87
5.4.340.0030.05019.21
5.4.320.0070.04718.86
5.4.310.0170.03719.22
5.4.300.0070.06719.18
5.4.290.0030.08019.32
5.4.280.0070.08019.22
5.4.270.0000.08319.19
5.4.260.0000.05719.12
5.4.250.0070.04019.11
5.4.240.0130.06719.21
5.4.230.0130.06019.16
5.4.220.0100.07319.16
5.4.210.0100.06019.17
5.4.200.0070.07019.16
5.4.190.0130.06319.14
5.4.180.0070.06319.18
5.4.170.0070.04718.88
5.4.160.0070.07719.11
5.4.150.0030.05018.87
5.4.140.0030.07716.46
5.4.130.0070.04716.51
5.4.120.0130.04316.43
5.4.110.0100.06316.39
5.4.100.0100.07016.55
5.4.90.0030.07716.62
5.4.80.0000.06316.43
5.4.70.0070.06316.53
5.4.60.0000.05316.42
5.4.50.0070.07016.61
5.4.40.0070.07016.52
5.4.30.0030.04716.52
5.4.20.0030.07316.51
5.4.10.0030.04716.36
5.4.00.0100.06315.96
5.3.290.0070.08015.71
5.3.280.0070.08315.71
5.3.270.0030.04715.71
5.3.260.0070.06315.71
5.3.250.0100.07315.71
5.3.240.0000.05015.71
5.3.230.0070.06715.71
5.3.220.0070.05315.71
5.3.210.0000.08315.71
5.3.200.0100.07715.71
5.3.190.0070.04315.71
5.3.180.0030.06715.71
5.3.170.0000.06715.71
5.3.160.0030.03315.71
5.3.150.0100.07315.71
5.3.140.0030.07715.71
5.3.130.0070.07715.71
5.3.120.0130.06715.71
5.3.110.0070.07715.71
5.3.100.0130.06015.71
5.3.90.0070.05315.71
5.3.80.0100.08015.71
5.3.70.0030.07715.71
5.3.60.0070.05715.71
5.3.50.0100.03715.71
5.3.40.0030.03715.71
5.3.30.0000.04315.71
5.3.20.0030.03715.71
5.3.10.0070.07015.71
5.3.00.0030.05715.71
5.2.170.0030.07015.71
5.2.160.0030.04315.71
5.2.150.0030.05015.71
5.2.140.0030.06015.71
5.2.130.0100.05315.71
5.2.120.0000.03715.71
5.2.110.0000.05715.71
5.2.100.0000.04315.71
5.2.90.0100.05715.71
5.2.80.0070.02715.71
5.2.70.0030.05315.71
5.2.60.0070.06015.71
5.2.50.0170.05015.71
5.2.40.0000.03715.71
5.2.30.0000.04315.71
5.2.20.0000.04715.71
5.2.10.0070.04315.71
5.2.00.0070.06015.71
5.1.60.0000.04315.71
5.1.50.0000.04315.71
5.1.40.0030.04315.71
5.1.30.0070.05715.71
5.1.20.0030.05715.71
5.1.10.0030.03315.71
5.1.00.0070.04015.71
5.0.50.0030.05015.71
5.0.40.0030.02315.71
5.0.30.0000.04015.71
5.0.20.0030.04315.71
5.0.10.0070.03015.71
5.0.00.0070.05715.71
4.4.90.0070.03315.71
4.4.80.0030.01315.71
4.4.70.0000.03015.71
4.4.60.0000.02715.71
4.4.50.0000.02015.71
4.4.40.0030.05015.71
4.4.30.0100.02715.71
4.4.20.0030.03015.71
4.4.10.0000.03015.71
4.4.00.0000.04715.71
4.3.110.0030.03315.71
4.3.100.0030.01315.71
4.3.90.0030.03715.71
4.3.80.0030.02715.71
4.3.70.0030.02715.71
4.3.60.0130.02715.71
4.3.50.0030.03015.71
4.3.40.0000.02315.71
4.3.30.0000.01715.71
4.3.20.0000.01715.71
4.3.10.0000.03015.71
4.3.00.0000.02015.71

preferences:
42.52 ms | 401 KiB | 5 Q