3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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',$x, $matches)) { $xml = simplexml_load_string($matches[0]); $code = $xml->xpath('//APCurrency'); echo $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.0070.00718.80
8.3.50.0090.01221.36
8.3.40.0070.00719.30
8.3.30.0100.00719.42
8.3.20.0080.00020.66
8.3.10.0000.00823.94
8.3.00.0080.00019.88
8.2.180.0090.00616.86
8.2.170.0070.00722.96
8.2.160.0100.00720.76
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0100.00520.35
8.2.110.0040.00420.77
8.2.100.0110.00218.47
8.2.90.0000.00819.64
8.2.80.0030.00618.25
8.2.70.0000.00918.13
8.2.60.0060.00318.30
8.2.50.0030.00618.07
8.2.40.0060.00320.43
8.2.30.0070.00018.50
8.2.20.0000.00818.20
8.2.10.0000.00818.47
8.2.00.0040.00418.29
8.1.280.0110.00725.92
8.1.270.0040.00422.69
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00024.35
8.1.230.0060.00619.46
8.1.220.0050.00318.02
8.1.210.0040.00418.77
8.1.200.0060.00317.63
8.1.190.0000.00917.60
8.1.180.0040.00418.10
8.1.170.0030.00718.93
8.1.160.0000.00722.31
8.1.150.0040.00419.18
8.1.140.0060.00317.93
8.1.130.0070.00018.21
8.1.120.0030.00517.97
8.1.110.0030.00517.77
8.1.100.0040.00417.97
8.1.90.0040.00417.73
8.1.80.0070.00017.87
8.1.70.0000.00717.85
8.1.60.0080.00018.03
8.1.50.0060.00318.02
8.1.40.0000.00918.02
8.1.30.0040.00418.07
8.1.20.0040.00417.95
8.1.10.0000.00717.94
8.1.00.0030.00618.07
8.0.300.0000.00718.77
8.0.290.0040.00417.13
8.0.280.0070.00018.88
8.0.270.0080.00017.32
8.0.260.0030.00317.74
8.0.250.0050.00317.60
8.0.240.0050.00317.60
8.0.230.0000.00717.36
8.0.220.0040.00417.28
8.0.210.0030.00517.46
8.0.200.0000.00717.40
8.0.190.0040.00417.53
8.0.180.0030.00517.43
8.0.170.0040.00417.37
8.0.160.0000.00817.40
8.0.150.0040.00417.47
8.0.140.0040.00417.37
8.0.130.0050.00013.84
8.0.120.0030.00517.38
8.0.110.0040.00417.35
8.0.100.0040.00417.26
8.0.90.0070.00017.34
8.0.80.0030.01317.38
8.0.70.0000.00817.56
8.0.60.0040.00417.32
8.0.50.0040.00417.38
8.0.30.0110.00817.78
8.0.20.0120.00817.79
8.0.10.0040.00417.55
8.0.00.0070.01017.32
7.4.330.0050.00015.02
7.4.320.0030.00317.13
7.4.300.0030.00317.14
7.4.290.0070.00017.00
7.4.280.0080.00417.15
7.4.270.0030.00617.04
7.4.260.0070.00017.07
7.4.250.0000.00716.86
7.4.240.0050.00217.09
7.4.230.0070.00016.92
7.4.220.0090.01217.17
7.4.210.0120.00917.03
7.4.200.0080.00017.11
7.4.160.0060.01016.99
7.4.150.0070.01017.40
7.4.140.0110.00917.86
7.4.130.0080.01217.21
7.4.120.0080.01017.12
7.4.110.0100.00717.07
7.4.100.0090.01217.10
7.4.90.0070.01117.33
7.4.80.0200.00319.39
7.4.70.0100.00716.98
7.4.60.0160.00317.21
7.4.50.0080.00017.08
7.4.40.0130.00317.16
7.4.30.0110.01117.07
7.4.00.0000.01215.41
7.3.330.0060.00013.73
7.3.320.0000.00613.63
7.3.310.0040.00416.70
7.3.300.0070.00016.80
7.3.290.0080.00716.83
7.3.280.0080.00816.83
7.3.270.0060.01217.40
7.3.260.0180.00816.94
7.3.250.0110.00917.00
7.3.240.0120.00917.20
7.3.230.0090.01216.88
7.3.210.0130.00317.13
7.3.200.0070.01119.39
7.3.190.0090.00916.95
7.3.180.0100.00616.92
7.3.170.0070.01016.74
7.3.160.0100.00716.89
7.2.330.0150.00917.29
7.2.320.0100.00717.29
7.2.310.0030.01316.96
7.2.300.0070.01417.09
7.2.290.0090.00917.07
7.2.60.0060.00917.09
7.2.00.0070.00719.37
7.1.200.0070.00716.32
7.1.100.0150.00018.68
7.1.70.0040.01117.35
7.1.60.0030.02119.11
7.1.50.0100.00717.06
7.1.00.0070.07322.59
7.0.200.0040.00416.95
7.0.140.0100.06022.21
7.0.60.0030.04320.09
7.0.50.0030.07318.12
7.0.40.0130.07720.29
7.0.30.0300.05720.42
7.0.20.0400.06720.49
7.0.10.0100.04020.38
7.0.00.0030.05720.53
5.6.280.0000.07721.21
5.6.210.0200.06720.80
5.6.200.0130.07318.41
5.6.190.0030.04720.64
5.6.180.0330.06720.64
5.6.170.0170.06020.72
5.6.160.0070.04020.73
5.6.150.0070.04018.34
5.6.140.0100.05018.37
5.6.130.0070.03718.32
5.6.120.0130.07721.28
5.6.110.0100.05321.23
5.6.100.0100.08321.26
5.6.90.0070.08021.19
5.6.80.0030.03720.64
5.6.70.0070.07320.64
5.5.350.0100.03020.63
5.5.340.0000.04318.16
5.5.330.0100.05320.47
5.5.320.0000.06720.39
5.5.310.0330.08020.52
5.5.300.0030.04318.19
5.5.290.0100.07718.13
5.5.280.0100.04020.91
5.5.270.0070.06720.95
5.5.260.0070.06721.04
5.5.250.0000.08720.86
5.5.240.0270.07020.40
5.4.450.0730.06319.59
5.4.440.0730.05019.63
5.4.430.0600.07319.39
5.4.420.0830.00019.45
5.4.410.0630.00019.54
5.4.400.0670.00019.22
5.4.390.0630.00019.48
5.4.380.0630.00019.26
5.4.370.0630.00019.17
5.4.360.0600.00019.25
5.4.350.0630.00019.38
5.4.340.0050.04312.20
5.4.320.0060.03612.69
5.4.310.0090.04812.69
5.4.300.0050.03812.69
5.4.290.0060.04512.69
5.4.280.0070.03312.59
5.4.270.0070.03812.58
5.4.260.0090.03712.59
5.4.250.0080.03512.58
5.4.240.0050.03612.58
5.4.230.0090.03712.57
5.4.220.0080.03512.58
5.4.210.0020.04012.58
5.4.200.0070.03712.57
5.4.190.0060.04412.57
5.4.180.0060.03912.57
5.4.170.0110.03912.58
5.4.160.0070.03612.58
5.4.150.0040.04012.57
5.4.140.0060.04612.26
5.4.130.0070.03412.25
5.4.120.0070.03512.20
5.4.110.0090.03112.20
5.4.100.0080.03312.20
5.4.90.0060.03712.20
5.4.80.0050.04012.20
5.4.70.0060.03412.20
5.4.60.0090.03712.20
5.4.50.0080.03712.20
5.4.40.0080.04312.19
5.4.30.0050.03612.18
5.4.20.0050.03512.18
5.4.10.0040.03612.18
5.4.00.0060.03611.67
5.3.290.0030.04212.96
5.3.280.0060.03812.89
5.3.270.0070.04412.90
5.3.260.0080.03712.89
5.3.250.0040.03812.89
5.3.240.0130.03512.90
5.3.230.0050.04212.89
5.3.220.0040.03912.86
5.3.210.0060.03812.86
5.3.200.0020.04112.85
5.3.190.0050.03812.86
5.3.180.0050.03712.86
5.3.170.0060.03612.86
5.3.160.0070.03512.85
5.3.150.0050.03812.85
5.3.140.0050.03912.84
5.3.130.0100.03712.84
5.3.120.0080.03712.84
5.3.110.0040.04012.84
5.3.100.0080.03712.32
5.3.90.0080.03612.31
5.3.80.0020.03912.30
5.3.70.0060.03612.30
5.3.60.0080.03512.29
5.3.50.0100.04812.23
5.3.40.0060.03712.23
5.3.30.0030.03912.19
5.3.20.0020.04011.97
5.3.10.0050.03611.94
5.3.00.0070.03511.93
5.2.170.0060.0309.43
5.2.160.0040.0319.43
5.2.150.0010.0359.42
5.2.140.0040.0319.42
5.2.130.0060.0289.38
5.2.120.0070.0269.38
5.2.110.0070.0269.39
5.2.100.0030.0309.38
5.2.90.0050.0299.38
5.2.80.0040.0309.38
5.2.70.0070.0279.38
5.2.60.0050.0309.33
5.2.50.0040.0319.30
5.2.40.0070.0279.28
5.2.30.0090.0269.26
5.2.20.0050.0289.25
5.2.10.0040.0299.16
5.2.00.0050.0289.02
5.1.60.0050.0238.30
5.1.50.0060.0238.30
5.1.40.0020.0268.29
5.1.30.0050.0258.63
5.1.20.0060.0248.65
5.1.10.0030.0268.38
5.1.00.0060.0328.15
5.0.50.0040.0256.85
5.0.40.0040.0256.71
5.0.30.0010.0336.52
5.0.20.0020.0206.50
5.0.10.0030.0206.47
5.0.00.0060.0366.46
4.4.90.0030.0154.78
4.4.80.0030.0154.75
4.4.70.0030.0154.75
4.4.60.0050.0134.75
4.4.50.0040.0194.77
4.4.40.0030.0294.71
4.4.30.0020.0214.76
4.4.20.0030.0154.85
4.4.10.0030.0214.85
4.4.00.0020.0254.76
4.3.110.0050.0214.67
4.3.100.0040.0134.66
4.3.90.0030.0134.64
4.3.80.0020.0254.59
4.3.70.0040.0134.63
4.3.60.0010.0164.62
4.3.50.0030.0144.63
4.3.40.0030.0244.54
4.3.30.0010.0173.28
4.3.20.0020.0173.25
4.3.10.0030.0143.22
4.3.00.0100.0237.28

preferences:
47.41 ms | 401 KiB | 5 Q