3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = '<extData> <Airpoints> <APCurrency>NZD</APCurrency> </Airpoints> <orderData> <order><orderId>3</orderId><orderTime>2014-10-23T02:51:48</orderTime><item><sku>130</sku><title>Chicken Sandwich</title><quantity>1</quantity><price>10.00</price><amount>10.00</amount></item><subtotal>10.00</subtotal><fee>0.00</fee><total>10.00</total><orderStatus>COMP</orderStatus></order><schema_version>2</schema_version> </orderData> </extData>>2014-A'; $x = '<extData> <orderData> <order><orderId>6</orderId><orderTime>2014-10-23T02:53:38</orderTime><item><sku>138</sku><title>Beef Pie</title><quantity>1</quantity><price>8.00</price><amount>8.00</amount></item><item><sku>138</sku><title>Beef Pie</title><quantity>-1</quantity><price>8.00</price><amount>-8.00</amount></item><subtotal>0.00</subtotal><fee>0.00</fee><total>0.00</total><orderStatus>COMP</orderStatus></order><schema_version>2</schema_version> </orderData> </extData><price>±'; if(preg_match('/<extData>(.*)<\/extData>/s',$y, $matches)) { $xml = new SimpleXMLElement($matches[0]); $code = $xml->xpath('//APCurrency'); var_dump($code); } //var_dump($matches);

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.0140.00018.93
8.3.50.0150.00416.89
8.3.40.0070.00719.39
8.3.30.0140.00019.51
8.3.20.0000.00720.55
8.3.10.0060.00324.03
8.3.00.0090.00019.76
8.2.180.0100.00619.16
8.2.170.0040.01222.96
8.2.160.0070.01020.72
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00322.45
8.2.110.0140.00421.68
8.2.100.0060.00618.28
8.2.90.0030.00518.48
8.2.80.0040.00419.84
8.2.70.0050.00318.41
8.2.60.0000.00818.30
8.2.50.0080.00018.25
8.2.40.0080.00020.80
8.2.30.0040.00418.42
8.2.20.0030.00518.19
8.2.10.0000.00718.38
8.2.00.0000.00818.20
8.1.280.0110.00425.92
8.1.270.0040.00422.32
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00319.64
8.1.230.0040.00821.41
8.1.220.0090.00017.79
8.1.210.0040.00419.10
8.1.200.0000.00817.61
8.1.190.0060.00317.73
8.1.180.0060.00318.10
8.1.170.0040.00419.00
8.1.160.0000.00722.58
8.1.150.0040.00419.17
8.1.140.0000.00817.95
8.1.130.0000.00718.14
8.1.120.0070.00017.93
8.1.110.0050.00217.95
8.1.100.0050.00217.84
8.1.90.0000.00817.85
8.1.80.0000.00817.80
8.1.70.0030.00317.93
8.1.60.0000.00917.96
8.1.50.0030.00517.83
8.1.40.0040.00417.96
8.1.30.0040.00418.12
8.1.20.0030.00518.14
8.1.10.0030.00517.90
8.1.00.0000.00818.07
8.0.300.0040.00420.39
8.0.290.0050.00317.38
8.0.280.0000.00718.68
8.0.270.0000.00717.49
8.0.260.0030.00317.52
8.0.250.0030.00317.47
8.0.240.0000.00817.39
8.0.230.0040.00417.38
8.0.220.0000.00717.33
8.0.210.0050.00217.35
8.0.200.0030.00317.27
8.0.190.0080.00017.37
8.0.180.0040.00417.23
8.0.170.0030.00617.41
8.0.160.0070.00017.39
8.0.150.0030.00517.22
8.0.140.0050.00317.32
8.0.130.0050.00013.68
8.0.120.0040.00417.27
8.0.110.0020.00517.13
8.0.100.0030.00517.34
8.0.90.0060.00317.34
8.0.80.0130.00317.24
8.0.70.0020.00517.36
8.0.60.0000.00717.20
8.0.50.0070.00017.10
8.0.30.0110.00917.67
8.0.20.0070.01717.51
8.0.10.0000.00717.44
8.0.00.0110.00617.18
7.4.330.0020.00215.02
7.4.320.0070.00017.13
7.4.300.0070.00017.16
7.4.290.0000.00717.05
7.4.280.0060.00616.90
7.4.270.0090.00317.13
7.4.260.0030.00316.94
7.4.250.0030.00517.00
7.4.240.0040.00417.09
7.4.230.0070.00017.14
7.4.220.0070.01017.11
7.4.210.0000.01417.14
7.4.200.0070.00017.18
7.4.160.0120.00917.10
7.4.150.0150.00317.40
7.4.140.0110.01317.86
7.4.130.0140.00717.00
7.4.120.0100.00616.99
7.4.110.0140.00716.96
7.4.100.0110.00717.15
7.4.90.0060.01216.87
7.4.80.0080.01419.39
7.4.70.0030.01517.22
7.4.60.0100.01017.03
7.4.50.0000.00817.07
7.4.40.0100.01317.05
7.4.30.0120.00417.11
7.4.00.0100.00715.36
7.3.330.0000.00713.47
7.3.320.0050.00013.60
7.3.310.0030.00316.68
7.3.300.0000.00716.66
7.3.290.0060.01016.84
7.3.280.0110.00516.83
7.3.270.0130.00617.40
7.3.260.0120.01217.09
7.3.250.0090.01216.90
7.3.240.0180.00416.78
7.3.230.0160.00616.76
7.3.210.0100.00716.66
7.3.200.0120.00619.39
7.3.190.0100.00716.86
7.3.180.0000.01516.96
7.3.170.0080.00816.77
7.3.160.0060.01017.03
7.3.120.0040.01115.01
7.3.110.0070.01314.95
7.3.100.0090.00914.88
7.3.90.0090.00615.22
7.3.80.0030.01314.98
7.3.70.0060.00315.06
7.3.60.0030.00915.27
7.3.50.0040.01115.06
7.3.40.0110.00315.07
7.3.30.0070.00415.17
7.3.20.0060.00617.05
7.3.10.0030.01017.10
7.3.00.0120.00316.90
7.2.330.0120.00617.02
7.2.320.0060.01017.07
7.2.310.0090.00917.03
7.2.300.0170.00016.82
7.2.290.0030.01316.99
7.2.250.0030.01315.34
7.2.240.0100.00715.17
7.2.230.0090.00615.07
7.2.220.0060.00615.23
7.2.210.0070.00715.33
7.2.200.0060.00615.32
7.2.190.0060.00915.13
7.2.180.0030.01015.11
7.2.170.0130.00015.11
7.2.60.0060.00917.11
7.2.00.0000.01219.83
7.1.330.0060.00916.19
7.1.320.0040.00816.38
7.1.310.0100.00716.10
7.1.300.0060.00616.16
7.1.290.0030.01015.91
7.1.280.0090.00616.02
7.1.270.0030.00916.00
7.1.260.0030.01016.33
7.1.200.0030.01016.03
7.1.100.0070.00718.54
7.1.70.0120.00617.46
7.1.60.0060.01519.11
7.1.50.0230.00734.87
7.1.00.0030.07722.59
7.0.200.0120.00316.95
7.0.140.0030.07022.32
7.0.60.0030.07320.09
7.0.50.0070.08018.01
7.0.40.0030.09320.13
7.0.30.0270.04320.46
7.0.20.0370.07320.25
7.0.10.0070.09020.34
7.0.00.0070.08720.28
5.6.280.0000.07721.13
5.6.210.0070.08720.74
5.6.200.0100.03318.34
5.6.190.0030.08020.61
5.6.180.0270.05320.78
5.6.170.0230.08720.76
5.6.160.0100.08020.75
5.6.150.0130.06718.32
5.6.140.0030.04318.39
5.6.130.0070.04718.39
5.6.120.0070.04721.28
5.6.110.0130.07021.16
5.6.100.0200.07021.24
5.6.90.0070.08321.18
5.6.80.0200.05720.56
5.5.350.0300.07020.64
5.5.340.0000.08718.10
5.5.330.0100.08020.30
5.5.320.0130.07320.54
5.5.310.0270.06720.46
5.5.300.0000.04718.16
5.5.290.0130.04018.21
5.5.280.0030.08321.10
5.5.270.0170.07320.95
5.5.260.0100.04720.94
5.5.250.0100.07020.77
5.5.240.0170.06320.34
5.4.450.3330.05019.64
5.4.440.3900.04719.70
5.4.430.3430.04319.63
5.4.420.4070.04319.42
5.4.410.3800.03719.40
5.4.400.3730.03319.41
5.4.390.3470.03019.21
5.4.380.3600.03319.46
5.4.370.4230.03719.41
5.4.360.3770.04319.29
5.4.350.3330.04019.10
5.4.340.3430.03719.07
5.4.320.3530.03719.10
5.4.310.3600.03319.07
5.4.300.3470.03319.21
5.4.290.3530.03019.34
5.4.280.3370.04319.34
5.4.270.3300.04019.28
5.4.260.3430.03019.37
5.4.250.3630.03319.09
5.4.240.3370.03019.36
5.4.230.3270.04019.30
5.4.220.3970.02719.36
5.4.210.3630.04319.39
5.4.200.3530.04719.30
5.4.190.3770.04019.23
5.4.180.3700.04019.34
5.4.170.3570.04019.06
5.4.160.3800.04019.19
5.4.150.3370.04719.18
5.4.140.3600.03016.51
5.4.130.3270.03016.73
5.4.120.3570.04316.73
5.4.110.3230.04016.61
5.4.100.3400.04016.54
5.4.90.3370.04016.66
5.4.80.3300.03716.62
5.4.70.0070.03016.63
5.4.60.0070.03016.66
5.4.50.3370.03316.45
5.4.40.3400.03716.48
5.4.30.3530.03316.62
5.4.20.3330.02716.63
5.4.10.3370.03016.45
5.4.00.3870.03016.08
5.3.290.3730.04014.83
5.3.280.3470.03714.70
5.3.270.3270.04314.66
5.3.260.3270.04014.84
5.3.250.3430.04014.77
5.3.240.3630.03314.70
5.3.230.3600.03314.80
5.3.220.3400.03714.63
5.3.210.3430.03314.63
5.3.200.3300.04014.85
5.3.190.3430.04014.63
5.3.180.3570.03714.66
5.3.170.2330.04014.82
5.3.160.0030.04014.62
5.3.150.2070.03014.59
5.3.140.3370.03314.77
5.3.130.3330.04314.61
5.3.120.3470.03014.79
5.3.110.3230.03714.61
5.3.100.3570.04014.30
5.3.90.3570.03014.08
5.3.80.3270.03014.07
5.3.70.3470.03714.13
5.3.60.4100.02714.07
5.3.50.4200.04013.97
5.3.40.4270.03714.16
5.3.30.2130.03314.16
5.3.20.0070.07013.89
5.3.10.3930.03713.69
5.3.00.4230.03713.80
5.2.170.3600.02711.20
5.2.160.3570.03011.21
5.2.150.3230.02311.47
5.2.140.0000.03711.21
5.2.130.0000.03011.16
5.2.120.1900.03711.32
5.2.110.3530.03011.42
5.2.100.2870.03011.21
5.2.90.2800.03711.16
5.2.80.2970.03311.15
5.2.70.2970.02311.21
5.2.60.3030.02711.27
5.2.50.2970.03011.07
5.2.40.2200.03311.20
5.2.30.2400.02011.18
5.2.20.2330.03011.13
5.2.10.2530.02311.18
5.2.00.2570.02710.88
5.1.60.2330.02710.10
5.1.50.2770.02310.22
5.1.40.2700.02710.14
5.1.30.2830.03010.41
5.1.20.2570.03010.62
5.1.10.2930.03010.31
5.1.00.2630.02710.09
5.0.50.1630.0278.86
5.0.40.1470.0138.51
5.0.30.1670.0308.34
5.0.20.1670.0178.31
5.0.10.1300.0208.36
5.0.00.1200.0308.27
4.4.90.1100.0135.82
4.4.80.1300.0175.82
4.4.70.1200.0135.76
4.4.60.1470.0135.79
4.4.50.1100.0135.82
4.4.40.1630.0275.89
4.4.30.1770.0135.78
4.4.20.1570.0175.82
4.4.10.1600.0175.82
4.4.00.1570.0275.89
4.3.110.1800.0175.77
4.3.100.1300.0175.75
4.3.90.1130.0135.73
4.3.80.1270.0205.74
4.3.70.1500.0175.80
4.3.60.1170.0175.70
4.3.50.1300.0175.75
4.3.40.1230.0275.71
4.3.30.0600.0204.71
4.3.20.0600.0134.71
4.3.10.0600.0174.71
4.3.00.0600.0134.71

preferences:
48.86 ms | 400 KiB | 5 Q