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');echo (string)$code[0]; }

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.0150.00018.29
8.3.50.0110.00821.89
8.3.40.0040.01118.52
8.3.30.0080.00819.11
8.3.20.0050.00320.04
8.3.10.0080.00023.65
8.3.00.0000.00719.13
8.2.180.0060.01518.29
8.2.170.0110.00422.96
8.2.160.0120.00320.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.09
8.2.110.0090.00320.94
8.2.100.0080.00417.50
8.2.90.0080.00019.12
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0040.00417.97
8.2.30.0000.00717.79
8.2.20.0000.00817.53
8.2.10.0030.00517.79
8.2.00.0040.00417.44
8.1.280.0150.00425.92
8.1.270.0040.00423.78
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00022.28
8.1.230.0000.01119.16
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0080.00317.22
8.1.190.0030.00617.13
8.1.180.0060.00318.10
8.1.170.0000.01118.50
8.1.160.0080.00021.93
8.1.150.0050.00218.60
8.1.140.0040.00417.23
8.1.130.0000.00717.67
8.1.120.0000.00717.32
8.1.110.0070.00017.20
8.1.100.0000.00717.35
8.1.90.0060.00317.32
8.1.80.0000.00717.35
8.1.70.0040.00417.31
8.1.60.0000.01117.40
8.1.50.0040.00417.43
8.1.40.0040.00417.25
8.1.30.0030.00617.50
8.1.20.0030.00617.44
8.1.10.0000.00817.42
8.1.00.0080.00017.34
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0030.00317.17
8.0.260.0050.00318.24
8.0.250.0030.00316.71
8.0.240.0030.00316.68
8.0.230.0030.00316.86
8.0.220.0000.00716.83
8.0.210.0040.00416.80
8.0.200.0060.00016.90
8.0.190.0040.00416.79
8.0.180.0030.00616.83
8.0.170.0040.00416.79
8.0.160.0000.00916.66
8.0.150.0040.00416.67
8.0.140.0070.00016.70
8.0.130.0030.00313.32
8.0.120.0050.00316.71
8.0.110.0050.00316.71
8.0.100.0030.00316.56
8.0.90.0000.00716.78
8.0.80.0110.00716.68
8.0.70.0000.00716.57
8.0.60.0000.00716.57
8.0.50.0030.00316.81
8.0.30.0080.01117.08
8.0.20.0140.00817.40
8.0.10.0020.00516.75
8.0.00.0090.00916.54
7.4.330.0030.00315.02
7.4.320.0030.00316.36
7.4.300.0030.00316.34
7.4.290.0030.00316.45
7.4.280.0000.00716.25
7.4.270.0070.00016.43
7.4.260.0070.00316.45
7.4.250.0070.00016.32
7.4.240.0030.00316.40
7.4.230.0000.00616.52
7.4.220.0060.01216.54
7.4.210.0030.01616.40
7.4.200.0050.00216.27
7.4.160.0040.01316.51
7.4.150.0150.00917.40
7.4.140.0060.01117.86
7.4.130.0090.00816.49
7.4.120.0110.00816.46
7.4.110.0100.01316.48
7.4.100.0100.00716.41
7.4.90.0170.00016.36
7.4.80.0030.02019.39
7.4.70.0160.00316.16
7.4.60.0160.00716.32
7.4.50.0020.00216.36
7.4.40.0150.00616.50
7.4.30.0110.01216.58
7.3.330.0020.00213.04
7.3.320.0050.00013.15
7.3.310.0030.00316.08
7.3.300.0000.00615.98
7.3.290.0090.00816.10
7.3.280.0070.01116.15
7.3.270.0040.01417.40
7.3.260.0160.00616.21
7.3.250.0060.01316.11
7.3.240.0100.00716.18
7.3.230.0150.00616.39
7.3.210.0110.00616.16
7.3.200.0030.01219.39
7.3.190.0070.01016.16
7.3.180.0090.00616.21
7.3.170.0100.00716.29
7.3.160.0120.00316.47
7.2.330.0090.00916.32
7.2.320.0060.01116.66
7.2.310.0030.01316.55
7.2.300.0070.01016.58
7.2.290.0060.01716.27
5.4.340.0050.04012.00
5.4.320.0050.03612.45
5.4.310.0070.03912.45
5.4.300.0040.03812.45
5.4.290.0060.04312.45
5.4.280.0100.03112.34
5.4.270.0040.03912.35
5.4.260.0030.03912.35
5.4.250.0080.03412.34
5.4.240.0050.03612.35
5.4.230.0050.03812.34
5.4.220.0030.03812.34
5.4.210.0080.03312.34
5.4.200.0050.03812.34
5.4.190.0040.03712.34
5.4.180.0040.03712.34
5.4.170.0080.03312.34
5.4.160.0080.03612.34
5.4.150.0050.03812.34
5.4.140.0030.04212.02
5.4.130.0070.03412.01
5.4.120.0060.03811.97
5.4.110.0030.03611.96
5.4.100.0070.03311.96
5.4.90.0040.04711.96
5.4.80.0060.03811.96
5.4.70.0030.03611.96
5.4.60.0040.03711.96
5.4.50.0090.03611.96
5.4.40.0030.03611.95
5.4.30.0070.04011.95
5.4.20.0060.03911.95
5.4.10.0070.03311.95
5.4.00.0040.03811.43

preferences:
64.36 ms | 401 KiB | 5 Q