3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oPricingInfoDocument = new DOMDocument(); $oPricingInfoDocument->preserveWhiteSpace = FALSE; $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.70.0110.00417.00
8.3.60.0120.00418.68
8.3.50.0130.00422.11
8.3.40.0150.00019.08
8.3.30.0070.01120.46
8.3.20.0060.00319.21
8.3.10.0030.00521.35
8.3.00.0040.00419.92
8.2.180.0170.00317.13
8.2.170.0140.00322.96
8.2.160.0110.00420.69
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0030.00526.16
8.2.120.0040.00420.04
8.2.110.0100.00022.39
8.2.100.0000.01218.03
8.2.90.0000.00818.28
8.2.80.0040.00418.00
8.2.70.0060.00317.75
8.2.60.0030.00518.18
8.2.50.0030.00718.07
8.2.40.0040.00418.47
8.2.30.0000.00821.49
8.2.20.0000.00818.11
8.2.10.0000.00817.90
8.2.00.0040.00417.99
8.1.280.0060.00825.92
8.1.270.0070.00023.99
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.43
8.1.230.0060.00621.29
8.1.220.0040.00417.91
8.1.210.0000.00819.06
8.1.200.0060.00317.48
8.1.190.0030.00617.75
8.1.180.0060.00318.10
8.1.170.0040.00418.82
8.1.160.0000.00719.11
8.1.150.0070.00018.87
8.1.140.0040.00417.65
8.1.130.0040.00418.10
8.1.120.0060.00317.73
8.1.110.0040.00417.69
8.1.100.0000.00717.73
8.1.90.0000.00717.73
8.1.80.0050.00317.60
8.1.70.0000.00717.66
8.1.60.0040.00417.72
8.1.50.0040.00417.58
8.1.40.0040.00417.78
8.1.30.0000.00817.89
8.1.20.0060.00317.91
8.1.10.0040.00417.75
8.1.00.0040.00417.82
8.0.300.0040.00420.28
8.0.290.0000.00817.16
8.0.280.0000.00818.71
8.0.270.0000.00717.50
8.0.260.0030.00317.04
8.0.250.0000.00817.32
8.0.240.0060.00317.11
8.0.230.0070.00017.20
8.0.220.0020.00517.15
8.0.210.0000.00717.13
8.0.200.0070.00017.19
8.0.190.0050.00317.04
8.0.180.0040.00417.14
8.0.170.0060.00316.95
8.0.160.0030.00317.05
8.0.150.0000.00717.09
8.0.140.0040.00416.93
8.0.130.0000.00613.57
8.0.120.0000.00816.94
8.0.110.0080.00017.02
8.0.100.0040.00416.97
8.0.90.0070.00017.21
8.0.80.0070.01017.06
8.0.70.0060.00317.15
8.0.60.0080.00016.88
8.0.50.0030.00617.11
8.0.30.0120.00617.15
8.0.20.0140.00717.40
8.0.10.0040.00417.18
8.0.00.0070.01117.03
7.4.330.0050.00017.06
7.4.320.0070.00016.89
7.4.300.0030.00316.87
7.4.290.0000.00716.72
7.4.280.0030.00316.95
7.4.270.0030.00316.98
7.4.260.0000.00613.48
7.4.250.0000.00816.68
7.4.240.0040.00416.85
7.4.230.0030.00316.93
7.4.220.0050.01416.90
7.4.210.0060.01016.84
7.4.200.0000.00816.54
7.4.190.0000.00716.86
7.4.160.0040.01316.81
7.4.150.0120.00617.40
7.4.140.0110.01517.86
7.4.130.0060.01116.81
7.4.120.0120.00816.77
7.4.110.0090.00916.86
7.4.100.0130.00616.66
7.4.90.0130.00916.92
7.4.80.0110.00619.39
7.4.70.0140.00416.64
7.4.60.0090.01216.62
7.4.50.0040.00416.39
7.4.40.0030.01022.77
7.4.30.0070.01116.61
7.4.00.0060.00614.98
7.3.330.0050.00013.23
7.3.320.0000.00613.22
7.3.310.0040.00416.38
7.3.300.0030.00316.54
7.3.290.0070.00716.58
7.3.280.0090.00616.50
7.3.270.0180.00917.40
7.3.260.0130.00818.24
7.3.250.0090.00816.83
7.3.240.0060.01016.97
7.3.230.0080.00916.61
7.3.210.0120.00916.59
7.3.200.0100.00719.39
7.3.190.0070.01016.59
7.3.180.0070.01016.90
7.3.170.0080.00816.89
7.3.160.0120.00616.84
7.3.120.0110.00414.80
7.2.330.0070.01016.89
7.2.320.0070.01117.04
7.2.310.0130.00616.93
7.2.300.0100.00517.05
7.2.290.0070.01016.76
7.2.60.0070.00716.96
7.2.00.0070.00719.66
7.1.200.0070.00715.66
7.1.100.0000.01218.15
7.1.70.0030.00517.24
7.1.60.0070.01019.24
7.1.50.0070.01417.01
7.1.00.0000.06722.52
7.0.200.0070.00716.96
7.0.140.0030.07322.15
7.0.100.0030.08319.92
7.0.90.0130.08020.13
7.0.80.0170.07720.11
7.0.70.0070.07319.94
7.0.60.0130.07020.01
7.0.50.0030.04720.29
7.0.40.0100.05320.16
7.0.30.0000.05020.24
7.0.20.0030.04320.28
7.0.10.0100.03720.15
7.0.00.0070.04720.15
5.6.280.0070.06720.97
5.6.250.0200.08020.58
5.6.240.0030.08020.73
5.6.230.0100.07020.71
5.6.220.0270.05320.50
5.6.210.0000.09020.63
5.6.200.0070.08721.00
5.6.190.0170.08321.24
5.6.180.0130.04021.02
5.6.170.0030.04720.98
5.6.160.0100.04321.07
5.6.150.0100.04020.99
5.6.140.0070.04021.13
5.6.130.0030.04321.08
5.6.120.0030.07321.07
5.6.110.0030.09021.09
5.6.100.0100.05321.09
5.6.90.0030.08721.14
5.6.80.0070.04020.62
5.6.70.0030.03720.48
5.6.60.0030.04320.59
5.6.50.0100.03720.48
5.6.40.0100.03320.48
5.6.30.0070.03720.53
5.6.20.0030.04020.64
5.6.10.0000.04320.64
5.6.00.0030.04020.63
5.5.380.0030.08020.41
5.5.370.0130.06720.57
5.5.360.0070.09320.40
5.5.350.0100.08020.50
5.5.340.0130.05320.82
5.5.330.0070.08720.86
5.5.320.0130.03720.82
5.5.310.0000.06020.83
5.5.300.0070.04020.88
5.5.290.0100.03720.77
5.5.280.0000.05020.88
5.5.270.0100.08020.95
5.5.260.0070.05321.03
5.5.250.0030.03720.78
5.5.240.0030.04320.30
5.5.230.0030.05020.20
5.5.220.0070.04320.34
5.5.210.0030.04720.32
5.5.200.0000.04320.25
5.5.190.0070.03720.25
5.5.180.0100.03320.39
5.5.160.0130.03720.31
5.5.150.0100.03320.29
5.5.140.0130.03320.26
5.5.130.0030.03720.16
5.5.120.0030.04320.11
5.5.110.0070.04020.27
5.5.100.0030.04020.13
5.5.90.0030.04020.12
5.5.80.0100.03320.25
5.5.70.0030.04020.26
5.5.60.0070.03720.18
5.5.50.0030.04020.10
5.5.40.0130.03020.09
5.5.30.0000.05720.17
5.5.20.0100.04320.00
5.5.10.0030.06720.25
5.5.00.0230.08320.22
5.4.450.0030.03719.53
5.4.440.0100.05319.70
5.4.430.0070.06319.57
5.4.420.0030.08719.55
5.4.410.0030.04019.38
5.4.400.0000.04719.20
5.4.390.0000.04319.39
5.4.380.0100.05719.17
5.4.370.0070.03719.18
5.4.360.0030.04319.17
5.4.350.0070.03718.89
5.4.340.0100.03318.87
5.4.320.0070.03719.18
5.4.310.0000.04019.16
5.4.300.0000.03719.39
5.4.290.0030.03718.89
5.4.280.0070.03718.89
5.4.270.0030.04719.21
5.4.260.0070.03719.11
5.4.250.0070.03319.17
5.4.240.0000.04019.37
5.4.230.0030.03719.37
5.4.220.0070.04319.21
5.4.210.0130.03319.16
5.4.200.0070.03319.18
5.4.190.0100.03019.16
5.4.180.0100.05319.21
5.4.170.0100.07019.21
5.4.160.0070.04019.18
5.4.150.0100.07319.11
5.4.140.0170.05716.46
5.4.130.0200.06716.51
5.4.120.0070.05716.36
5.4.110.0070.04016.52
5.4.100.0100.03716.39
5.4.90.0030.04316.52
5.4.80.0130.07016.62
5.4.70.0130.06716.43
5.4.60.0030.08316.35
5.4.50.0030.07716.45
5.4.40.0130.06716.55
5.4.30.0130.07016.51
5.4.20.0100.06716.43
5.4.10.0100.05716.41
5.4.00.0030.08015.93
5.3.290.0030.04314.84
5.3.280.0000.04014.68
5.3.270.0100.06714.70
5.3.260.0130.08014.73
5.3.250.0200.06014.68
5.3.240.0000.08314.74
5.3.230.0100.05014.77
5.3.220.0170.06714.70
5.3.210.0130.04714.71
5.3.200.0100.08014.67
5.3.190.0100.07714.64
5.3.180.0030.04014.63
5.3.170.0170.06314.48
5.3.160.0100.07014.48
5.3.150.0070.05014.72
5.3.140.0130.06714.64
5.3.130.0100.07014.47
5.3.120.0130.05714.61
5.3.110.0170.07014.49
5.3.100.0100.07013.97
5.3.90.0030.08314.08
5.3.80.0000.04714.13
5.3.70.0070.07314.15
5.3.60.0030.04714.14
5.3.50.0070.04314.12
5.3.40.0070.04314.04
5.3.30.0100.07314.05
5.3.20.0100.04313.54
5.3.10.0070.06313.49
5.3.00.0100.07013.73
5.2.170.0100.05712.27
5.2.160.0030.06312.27
5.2.150.0170.04312.27
5.2.140.0030.03312.27
5.2.130.0170.04712.27
5.2.120.0000.04012.27
5.2.110.0070.04012.27
5.2.100.0070.05712.27
5.2.90.0130.04012.27
5.2.80.0030.06712.27
5.2.70.0000.06712.27
5.2.60.0100.05712.27
5.2.50.0070.05712.27
5.2.40.0030.06712.27
5.2.30.0100.05712.27
5.2.20.0070.06312.27
5.2.10.0070.06012.27
5.2.00.0130.05312.27
5.1.60.0130.04012.27
5.1.50.0030.05312.27
5.1.40.0030.04312.27
5.1.30.0070.05312.27
5.1.20.0030.05712.27
5.1.10.0000.05012.27
5.1.00.0070.04312.27
5.0.50.0070.04012.27
5.0.40.0030.04312.27
5.0.30.0070.05012.27
5.0.20.0070.02012.27
5.0.10.0070.04012.27
5.0.00.0100.05012.27
4.4.90.0000.02712.27
4.4.80.0000.04012.27
4.4.70.0070.03012.27
4.4.60.0130.02312.27
4.4.50.0070.03312.27
4.4.40.0030.04712.27
4.4.30.0000.02312.27
4.4.20.0100.02712.27
4.4.10.0030.03312.27
4.4.00.0000.03712.27
4.3.110.0030.01712.27
4.3.100.0000.03012.27
4.3.90.0030.03012.27
4.3.80.0000.05712.27
4.3.70.0000.03712.27
4.3.60.0000.03712.27
4.3.50.0000.01712.27
4.3.40.0000.05012.27
4.3.30.0000.02312.27
4.3.20.0030.02012.27
4.3.10.0030.02312.27
4.3.00.0030.02312.27

preferences:
36.5 ms | 401 KiB | 5 Q