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 = simplexml_load_string($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.0000.01518.93
8.3.50.0160.00521.27
8.3.40.0040.01119.21
8.3.30.0080.00619.34
8.3.20.0050.00320.59
8.3.10.0040.00423.87
8.3.00.0040.00419.75
8.2.180.0130.00317.13
8.2.170.0000.01422.96
8.2.160.0100.00720.72
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00620.70
8.2.110.0090.00021.04
8.2.100.0080.00418.47
8.2.90.0000.00719.47
8.2.80.0090.00018.25
8.2.70.0000.00818.00
8.2.60.0000.00918.18
8.2.50.0050.00318.07
8.2.40.0050.00320.31
8.2.30.0040.00418.43
8.2.20.0000.00818.14
8.2.10.0000.00818.36
8.2.00.0000.00918.30
8.1.280.0110.00425.92
8.1.270.0090.00022.43
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0000.01024.22
8.1.230.0080.00419.55
8.1.220.0000.00817.91
8.1.210.0060.00318.77
8.1.200.0090.00017.60
8.1.190.0060.00317.72
8.1.180.0040.00418.10
8.1.170.0040.00418.95
8.1.160.0060.00322.36
8.1.150.0040.00419.13
8.1.140.0050.00317.82
8.1.130.0000.00818.18
8.1.120.0050.00217.77
8.1.110.0040.00417.93
8.1.100.0000.00717.96
8.1.90.0040.00417.75
8.1.80.0070.00017.94
8.1.70.0070.00017.80
8.1.60.0040.00418.09
8.1.50.0000.00817.78
8.1.40.0000.00717.98
8.1.30.0030.00618.03
8.1.20.0040.00418.05
8.1.10.0040.00418.09
8.1.00.0000.00718.11
8.0.300.0040.00418.77
8.0.290.0050.00217.13
8.0.280.0000.00718.78
8.0.270.0050.00217.59
8.0.260.0060.00017.64
8.0.250.0030.00317.48
8.0.240.0030.00317.42
8.0.230.0000.00817.31
8.0.220.0000.00717.38
8.0.210.0020.00517.19
8.0.200.0000.00717.40
8.0.190.0040.00417.40
8.0.180.0040.00417.20
8.0.170.0000.00817.45
8.0.160.0040.00417.42
8.0.150.0040.00417.41
8.0.140.0040.00417.26
8.0.130.0030.00313.83
8.0.120.0040.00417.14
8.0.110.0020.00517.39
8.0.100.0050.00317.27
8.0.90.0040.00417.26
8.0.80.0130.00317.35
8.0.70.0030.00517.32
8.0.60.0040.00417.25
8.0.50.0040.00417.18
8.0.30.0110.01017.38
8.0.20.0110.01117.53
8.0.10.0040.00417.43
8.0.00.0130.00617.19
7.4.330.0000.00515.02
7.4.320.0000.00617.08
7.4.300.0000.00717.01
7.4.290.0000.00716.96
7.4.280.0040.00716.97
7.4.270.0030.00617.10
7.4.260.0000.00716.98
7.4.250.0030.00517.00
7.4.240.0040.00317.14
7.4.230.0000.00717.01
7.4.220.0110.00617.14
7.4.210.0140.00716.98
7.4.200.0000.00716.90
7.4.160.0160.00416.82
7.4.150.0030.01917.40
7.4.140.0110.01017.86
7.4.130.0080.01216.94
7.4.120.0080.00917.09
7.4.110.0100.00717.13
7.4.100.0100.00716.95
7.4.90.0060.01116.97
7.4.80.0100.00719.39
7.4.70.0120.00617.11
7.4.60.0110.01216.96
7.4.50.0080.00016.79
7.4.40.0080.01116.85
7.4.30.0040.01216.98
7.4.00.0070.00915.30
7.3.330.0030.00313.63
7.3.320.0030.00313.38
7.3.310.0030.00316.68
7.3.300.0040.00416.68
7.3.290.0060.00916.74
7.3.280.0080.01116.75
7.3.270.0130.00617.40
7.3.260.0160.00916.75
7.3.250.0140.00516.85
7.3.240.0080.00916.87
7.3.230.0070.01016.97
7.3.210.0070.01116.67
7.3.200.0090.00919.39
7.3.190.0100.00717.21
7.3.180.0100.00616.81
7.3.170.0060.01017.00
7.3.160.0100.00717.18
7.3.120.0100.01015.18
7.3.110.0100.01014.81
7.3.100.0000.01514.89
7.3.90.0090.00615.23
7.3.80.0070.00314.87
7.3.70.0060.00315.30
7.3.60.0060.00315.05
7.3.50.0000.00915.08
7.3.40.0030.01115.13
7.3.30.0000.01015.10
7.3.20.0060.00616.90
7.3.10.0060.00617.16
7.3.00.0090.00316.82
7.2.330.0130.00616.89
7.2.320.0090.01316.79
7.2.310.0110.01217.18
7.2.300.0140.00316.85
7.2.290.0090.01317.12
7.2.250.0100.00615.33
7.2.240.0080.00815.21
7.2.230.0000.01615.24
7.2.220.0030.00615.07
7.2.210.0100.00615.39
7.2.200.0040.00815.20
7.2.190.0000.00915.22
7.2.180.0090.00615.13
7.2.170.0040.00815.13
7.2.60.0100.00317.20
7.2.00.0070.00319.27
7.1.330.0060.00916.00
7.1.320.0060.00616.18
7.1.310.0100.00316.15
7.1.300.0030.01016.04
7.1.290.0070.00716.23
7.1.280.0040.00416.07
7.1.270.0050.00316.19
7.1.260.0040.01116.26
7.1.200.0040.01115.96
7.1.100.0030.01218.52
7.1.70.0100.00517.49
7.1.60.0030.02119.11
7.1.50.0130.01035.19
7.1.00.0100.07022.66
7.0.200.0030.00317.21
7.0.140.0000.07722.14
7.0.60.0100.07720.04
7.0.50.0070.05018.13
7.0.40.0030.06020.20
7.0.30.0570.07020.39
7.0.20.0270.04020.29
7.0.10.0100.08320.26
7.0.00.0100.04320.21
5.6.280.0000.07721.13
5.6.210.0170.05720.80
5.6.200.0070.07018.34
5.6.190.0070.05320.55
5.6.180.0270.07020.82
5.6.170.0100.05720.63
5.6.160.0100.08720.59
5.6.150.0070.08318.34
5.6.140.0100.07318.41
5.6.130.0100.04318.41
5.6.120.0170.07321.17
5.6.110.0000.06021.09
5.6.100.0100.08021.19
5.6.90.0200.05721.25
5.6.80.0170.03020.66
5.6.70.4500.03320.55
5.5.350.0100.05020.71
5.5.340.0000.04318.21
5.5.330.0070.05020.68
5.5.320.0000.09020.47
5.5.310.0400.06320.43
5.5.300.0030.05718.21
5.5.290.0030.06718.16
5.5.280.0130.07720.91
5.5.270.0070.03720.98
5.5.260.0200.07021.05
5.5.250.0030.04320.81
5.5.240.0130.08020.47
5.4.450.0130.05319.77
5.4.440.0730.06319.48
5.4.430.0670.05019.67
5.4.420.0630.00019.52
5.4.410.0900.00019.32
5.4.400.0630.00019.36
5.4.390.0630.00019.21
5.4.380.0670.00019.33
5.4.370.0630.00019.37
5.4.360.0600.00019.38
5.4.350.0670.00019.22
5.4.340.0060.03412.20
5.4.320.0050.03712.69
5.4.310.0080.03512.69
5.4.300.0070.03512.69
5.4.290.0050.04112.68
5.4.280.0010.04012.59
5.4.270.0050.03812.59
5.4.260.0050.03912.58
5.4.250.0080.03512.59
5.4.240.0120.04212.58
5.4.230.0060.03712.58
5.4.220.0080.03412.58
5.4.210.0080.03412.58
5.4.200.0080.03512.58
5.4.190.0050.03612.57
5.4.180.0060.03812.57
5.4.170.0070.03312.59
5.4.160.0070.04012.59
5.4.150.0060.03812.58
5.4.140.0040.03812.26
5.4.130.0070.03912.25
5.4.120.0040.03712.21
5.4.110.0050.03512.21
5.4.100.0060.03412.21
5.4.90.0070.04312.20
5.4.80.0090.03712.21
5.4.70.0040.03512.20
5.4.60.0070.04012.20
5.4.50.0080.04212.20
5.4.40.0080.03212.19
5.4.30.0080.04512.18
5.4.20.0040.03912.19
5.4.10.0060.03412.19
5.4.00.0070.03511.68
5.3.290.0050.04012.95
5.3.280.0050.03712.88
5.3.270.0050.03812.89
5.3.260.0080.04012.90
5.3.250.0080.04212.89
5.3.240.0080.03912.89
5.3.230.0090.03812.89
5.3.220.0050.04112.86
5.3.210.0070.03812.86
5.3.200.0070.04812.86
5.3.190.0050.03912.86
5.3.180.0050.03712.86
5.3.170.0060.03612.85
5.3.160.0050.03712.86
5.3.150.0060.04612.85
5.3.140.0050.03812.84
5.3.130.0040.04112.84
5.3.120.0070.03712.84
5.3.110.0040.04012.84
5.3.100.0070.03512.32
5.3.90.0060.03912.31
5.3.80.0050.04112.30
5.3.70.0070.03412.30
5.3.60.0080.03312.29
5.3.50.0070.04212.23
5.3.40.0050.04112.23
5.3.30.0060.03412.19
5.3.20.0030.03711.97
5.3.10.0070.03511.94
5.3.00.0040.04211.92
5.2.170.0070.0279.43
5.2.160.0090.0249.43
5.2.150.0060.0339.43
5.2.140.0030.0389.42
5.2.130.0030.0339.39
5.2.120.0040.0299.39
5.2.110.0060.0279.39
5.2.100.0040.0289.39
5.2.90.0040.0299.38
5.2.80.0050.0299.38
5.2.70.0030.0319.38
5.2.60.0030.0319.33
5.2.50.0040.0309.30
5.2.40.0030.0309.28
5.2.30.0060.0299.26
5.2.20.0050.0299.24
5.2.10.0030.0309.16
5.2.00.0040.0299.02
5.1.60.0050.0238.31
5.1.50.0060.0238.30
5.1.40.0010.0278.29
5.1.30.0050.0278.63
5.1.20.0040.0318.65
5.1.10.0050.0288.38
5.1.00.0070.0258.15
5.0.50.0030.0206.85
5.0.40.0060.0166.70
5.0.30.0060.0286.53
5.0.20.0030.0196.49
5.0.10.0050.0266.47
5.0.00.0020.0326.46
4.4.90.0040.0154.78
4.4.80.0030.0164.75
4.4.70.0020.0154.76
4.4.60.0040.0184.75
4.4.50.0030.0154.77
4.4.40.0040.0244.71
4.4.30.0010.0174.76
4.4.20.0010.0174.85
4.4.10.0030.0204.85
4.4.00.0050.0234.76
4.3.110.0040.0164.67
4.3.100.0020.0154.66
4.3.90.0010.0164.64
4.3.80.0020.0254.58
4.3.70.0030.0144.63
4.3.60.0010.0184.63
4.3.50.0030.0154.62
4.3.40.0030.0234.54
4.3.30.0010.0173.28
4.3.20.0020.0153.26
4.3.10.0030.0143.22
4.3.00.0170.0177.28

preferences:
51.66 ms | 401 KiB | 5 Q