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'); } 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.0110.00418.81
8.3.50.0160.00718.86
8.3.40.0070.00719.29
8.3.30.0150.00019.48
8.3.20.0040.00420.54
8.3.10.0050.00323.89
8.3.00.0060.00319.76
8.2.180.0060.00917.00
8.2.170.0070.00722.96
8.2.160.0110.00420.76
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00420.61
8.2.110.0030.00622.66
8.2.100.0040.00718.41
8.2.90.0040.00418.13
8.2.80.0040.00419.28
8.2.70.0090.00018.25
8.2.60.0050.00518.00
8.2.50.0040.00418.18
8.2.40.0000.00818.41
8.2.30.0060.00318.45
8.2.20.0060.00318.21
8.2.10.0070.00018.44
8.2.00.0050.00318.15
8.1.270.0060.00322.52
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0070.01024.23
8.1.230.0090.00323.00
8.1.220.0030.00518.98
8.1.210.0040.00418.77
8.1.200.0060.00317.98
8.1.190.0050.00317.86
8.1.180.0040.00418.10
8.1.170.0000.00717.95
8.1.160.0040.00422.39
8.1.150.0000.00819.09
8.1.140.0080.00017.88
8.1.130.0040.00417.88
8.1.120.0050.00317.92
8.1.110.0000.00817.76
8.1.100.0040.00418.02
8.1.90.0000.00817.98
8.1.80.0000.00817.80
8.1.70.0040.00417.77
8.1.60.0060.00318.04
8.1.50.0050.00317.88
8.1.40.0040.00418.07
8.1.30.0060.00318.03
8.1.20.0040.00417.93
8.1.10.0080.00018.07
8.1.00.0050.00318.01
8.0.300.0050.00518.77
8.0.290.0070.00017.25
8.0.280.0040.00418.79
8.0.270.0000.00717.59
8.0.260.0030.00317.22
8.0.250.0000.00717.36
8.0.240.0070.00017.30
8.0.230.0000.00717.42
8.0.220.0000.00717.37
8.0.210.0070.00017.34
8.0.200.0030.00317.50
8.0.190.0030.00617.43
8.0.180.0030.00517.38
8.0.170.0060.00317.43
8.0.160.0000.00717.41
8.0.150.0000.00817.35
8.0.140.0000.00817.37
8.0.130.0030.00313.82
8.0.120.0040.00417.19
8.0.110.0000.00717.42
8.0.100.0040.00417.30
8.0.90.0040.00417.30
8.0.80.0100.01117.27
8.0.70.0040.00417.37
8.0.60.0040.00417.19
8.0.50.0040.00417.28
8.0.30.0090.01417.63
8.0.20.0140.01117.63
8.0.10.0040.00417.49
8.0.00.0060.01117.41
7.4.330.0020.00215.02
7.4.320.0060.00016.90
7.4.300.0000.00617.15
7.4.290.0030.00317.13
7.4.280.0030.00717.11
7.4.270.0050.00316.96
7.4.260.0030.00817.03
7.4.250.0040.00417.02
7.4.240.0040.00317.04
7.4.230.0050.00217.25
7.4.220.0140.00717.11
7.4.210.0070.01117.05
7.4.200.0040.00417.11
7.4.160.0050.01116.95
7.4.150.0070.01117.40
7.4.140.0130.00617.86
7.4.130.0140.00717.02
7.4.120.0110.00717.04
7.4.110.0140.00316.96
7.4.100.0090.00916.96
7.4.90.0160.00316.98
7.4.80.0120.00619.39
7.4.70.0130.00916.80
7.4.60.0100.00617.03
7.4.50.0000.00816.99
7.4.40.0130.00316.88
7.4.30.0090.01217.03
7.4.00.0030.01015.23
7.3.330.0030.00313.57
7.3.320.0050.00013.64
7.3.310.0070.00016.52
7.3.300.0000.00716.67
7.3.290.0040.01116.75
7.3.280.0140.00516.71
7.3.270.0160.00517.40
7.3.260.0100.01316.77
7.3.250.0130.00816.82
7.3.240.0110.00816.72
7.3.230.0100.00717.17
7.3.210.0030.01316.67
7.3.200.0110.00719.39
7.3.190.0140.00716.76
7.3.180.0140.00316.73
7.3.170.0040.01316.93
7.3.160.0110.00616.70
7.2.330.0090.01016.95
7.2.320.0090.00917.00
7.2.310.0100.00717.05
7.2.300.0110.00717.07
7.2.290.0100.01016.99
7.2.00.0100.00319.59
7.1.100.0000.01318.46
7.1.70.0040.00417.63
7.1.60.0090.01619.11
7.1.50.0080.00817.39
7.1.00.0030.07722.64
7.0.200.0000.00916.89
7.0.140.0030.07322.10
7.0.60.0070.08320.25
7.0.50.0070.05318.09
7.0.40.0000.10020.49
7.0.30.0400.04320.36
7.0.20.0300.07020.41
7.0.10.0130.05020.25
7.0.00.0130.05720.21
5.6.280.0000.07321.08
5.6.210.0100.07320.77
5.6.200.0100.07018.43
5.6.190.0070.04020.91
5.6.180.0330.08020.82
5.6.170.0270.08020.71
5.6.160.0130.06320.86
5.6.150.0070.04718.37
5.6.140.0100.08018.34
5.6.130.0030.08318.27
5.6.120.0070.07721.27
5.6.110.0100.03721.30
5.6.100.0100.08321.20
5.6.90.0030.09021.24
5.6.80.0000.04020.49
5.6.70.2930.03720.59
5.5.350.0130.05320.61
5.5.340.0000.05718.17
5.5.330.0070.04020.38
5.5.320.0030.08320.66
5.5.310.0200.03720.38
5.5.300.0100.08318.13
5.5.290.0070.07318.16
5.5.280.0070.04321.00
5.5.270.0100.03720.98
5.5.260.0000.09021.14
5.5.250.0100.03320.79
5.5.240.0200.07320.28
5.4.450.0430.07719.70
5.4.440.0470.06719.53
5.4.430.0430.07019.39
5.4.420.0330.04019.55
5.4.410.0300.04019.55
5.4.400.0430.06019.31
5.4.390.0330.05019.35
5.4.380.0330.03719.07
5.4.370.0500.06719.38
5.4.360.0500.05719.29
5.4.350.0370.04719.07
5.4.340.0430.07319.46
5.4.320.0330.03719.38
5.4.310.0400.07319.46
5.4.300.0430.07019.48
5.4.290.0300.04319.31
5.4.280.0330.04319.38
5.4.270.0330.04019.30
5.4.260.0500.06319.35
5.4.250.0470.06019.23
5.4.240.0430.06719.23
5.4.230.0400.07319.21
5.4.220.0430.05019.09
5.4.210.0400.06719.20
5.4.200.0300.04019.32
5.4.190.0430.06319.20
5.4.180.0300.04319.06
5.4.170.0400.03719.22
5.4.160.0470.06719.19
5.4.150.0370.05319.32
5.4.140.0370.07316.49
5.4.130.0400.06716.58
5.4.120.0370.03016.49
5.4.110.0330.05316.69
5.4.100.0430.06716.70
5.4.90.0400.06316.47
5.4.80.0470.05016.56
5.4.70.0330.03716.58
5.4.60.0270.04016.56
5.4.50.0430.06316.53
5.4.40.0400.07016.28
5.4.30.0470.06316.50
5.4.20.0370.07016.71
5.4.10.0230.04016.28
5.4.00.0330.03015.82
5.3.290.0530.06014.73
5.3.280.0470.06314.81
5.3.270.0430.06014.68
5.3.260.0430.06314.85
5.3.250.0400.03014.86
5.3.240.0370.04014.77
5.3.230.0370.04314.63
5.3.220.0400.07314.67
5.3.210.0430.05014.78
5.3.200.0430.06314.63
5.3.190.0400.04014.64
5.3.180.0330.03714.63
5.3.170.0430.04314.62
5.3.160.0330.04014.67
5.3.150.0370.05314.68
5.3.140.0430.04314.62
5.3.130.0470.06714.75
5.3.120.0530.05714.61
5.3.110.0370.04314.61
5.3.100.0300.03314.22
5.3.90.0300.03314.12
5.3.80.0300.04314.13
5.3.70.0230.04014.05
5.3.60.0430.06014.18
5.3.50.0400.04314.13
5.3.40.0430.03314.05
5.3.30.0500.04314.13
5.3.20.0400.03013.86
5.3.10.0400.02713.68
5.3.00.0370.05313.75
5.2.170.0300.02711.66
5.2.160.0330.02311.66
5.2.150.0270.03711.66
5.2.140.0330.03011.66
5.2.130.0370.02311.66
5.2.120.0330.02311.66
5.2.110.0230.03311.66
5.2.100.0270.02711.66
5.2.90.0200.03311.66
5.2.80.0230.02711.66
5.2.70.0200.03311.66
5.2.60.0200.03311.66
5.2.50.0270.02711.66
5.2.40.0200.02711.66
5.2.30.0200.03711.66
5.2.20.0130.03311.66
5.2.10.0130.03011.66
5.2.00.0170.03011.66
5.1.60.0170.02711.66
5.1.50.0200.02311.66
5.1.40.0130.02711.66
5.1.30.0200.02311.66
5.1.20.0130.03011.66
5.1.10.0200.03011.66
5.1.00.0230.02011.66
5.0.50.0100.02011.66
5.0.40.0100.02311.66
5.0.30.0100.03311.66
5.0.20.0100.02011.66
5.0.10.0100.02311.66
5.0.00.0100.03311.66
4.4.90.0130.01011.66
4.4.80.0100.02011.66
4.4.70.0100.01711.66
4.4.60.0130.01011.66
4.4.50.0100.01311.66
4.4.40.0070.02711.66
4.4.30.0100.01711.66
4.4.20.0100.01711.66
4.4.10.0170.01311.66
4.4.00.0070.02711.66
4.3.110.0100.01311.66
4.3.100.0070.01711.66
4.3.90.0100.01711.66
4.3.80.0100.02311.66
4.3.70.0070.01711.66
4.3.60.0130.01311.66
4.3.50.0070.01711.66
4.3.40.0100.03011.66
4.3.30.0070.02311.66
4.3.20.0030.01711.66
4.3.10.0030.01711.66
4.3.00.0070.01711.66

preferences:
60.91 ms | 400 KiB | 5 Q