3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml_string = <<<EOX <?xml version="1.0" encoding="UTF-8"?> <gesmes:Envelope xmlns:gesmes="http://www.gesmes.org/xml/2002-08-01" xmlns="http://www.ecb.int/vocabulary/2002-08-01/eurofxref"> <gesmes:subject>Reference rates</gesmes:subject> <gesmes:Sender> <gesmes:name>European Central Bank</gesmes:name> </gesmes:Sender> <Cube> <Cube time='2013-08-23'> <Cube currency='USD' rate='1.3355'/> <Cube currency='GBP' rate='0.85910'/> <Cube currency='HUF' rate='298.98'/> </Cube> </Cube> </gesmes:Envelope> EOX; $xml = simplexml_load_string($xml_string); $xml->registerXPathNamespace('c', 'http://www.ecb.int/vocabulary/2002-08-01/eurofxref'); $result = $xml->xpath('//c:Cube[@currency="USD"]'); echo $result;

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.40.0100.01019.04
8.3.30.0120.00319.05
8.3.20.0080.00019.16
8.3.10.0030.00620.86
8.3.00.0090.00017.63
8.2.170.0090.00622.96
8.2.160.0000.02222.51
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00420.20
8.2.110.0070.00421.44
8.2.100.0000.01118.11
8.2.90.0000.00921.46
8.2.80.0000.00818.41
8.2.70.0000.00917.88
8.2.60.0060.00318.18
8.2.50.0060.00318.07
8.2.40.0000.00818.38
8.2.30.0070.00018.53
8.2.20.0040.00418.11
8.2.10.0030.00618.17
8.2.00.0060.00618.05
8.1.270.0050.00223.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00620.82
8.1.230.0070.00421.29
8.1.220.0030.00517.93
8.1.210.0050.00319.25
8.1.200.0000.00917.61
8.1.190.0050.00317.75
8.1.180.0080.00018.10
8.1.170.0050.00319.09
8.1.160.0040.00419.16
8.1.150.0070.00018.95
8.1.140.0000.00817.78
8.1.130.0030.00318.25
8.1.120.0040.00417.64
8.1.110.0040.00417.57
8.1.100.0040.00417.57
8.1.90.0050.00217.62
8.1.80.0040.00417.54
8.1.70.0000.00717.77
8.1.60.0040.00417.69
8.1.50.0040.00417.61
8.1.40.0060.00317.69
8.1.30.0030.00517.91
8.1.20.0040.00417.97
8.1.10.0000.00717.91
8.1.00.0040.00417.88
8.0.300.0070.00020.34
8.0.290.0030.00617.00
8.0.280.0040.00418.78
8.0.270.0000.00717.51
8.0.260.0030.00317.16
8.0.250.0040.00417.23
8.0.240.0050.00317.35
8.0.230.0030.00317.36
8.0.220.0030.00317.05
8.0.210.0030.00317.34
8.0.200.0000.00617.36
8.0.190.0070.00017.34
8.0.180.0040.00417.32
8.0.170.0050.00517.30
8.0.160.0040.00417.40
8.0.150.0080.00017.15
8.0.140.0060.00317.25
8.0.130.0050.00013.54
8.0.120.0080.00017.29
8.0.110.0060.00317.31
8.0.100.0040.00417.21
8.0.90.0040.00417.13
8.0.80.0100.01017.20
8.0.70.0040.00417.27
8.0.60.0070.00017.18
8.0.50.0000.00717.26
8.0.30.0100.01317.62
8.0.20.0060.02117.45
8.0.10.0000.00717.25
8.0.00.0080.01016.98
7.4.330.0000.00513.36
7.4.320.0060.00016.89
7.4.300.0030.00316.87
7.4.290.0030.00316.85
7.4.280.0060.00316.73
7.4.270.0070.00016.64
7.4.260.0050.00013.59
7.4.250.0050.00316.74
7.4.240.0000.00716.93
7.4.230.0040.00417.02
7.4.220.0130.01316.83
7.4.210.0080.00616.84
7.4.200.0030.00316.81
7.4.190.0000.00716.91
7.4.160.0090.00616.80
7.4.150.0030.01616.77
7.4.140.0050.01316.88
7.4.130.0090.00916.80
7.4.120.0060.01116.79
7.4.110.0070.01516.88
7.4.100.0060.01116.86
7.4.90.0090.01216.73
7.4.80.0090.00916.80
7.4.70.0110.00516.67
7.4.60.0080.00816.81
7.4.50.0060.00316.86
7.4.40.0060.00616.60
7.4.30.0070.01516.70
7.4.00.0080.00815.15
7.3.330.0030.00313.33
7.3.320.0050.00013.41
7.3.310.0020.00516.53
7.3.300.0000.00716.62
7.3.290.0040.01116.56
7.3.280.0090.01016.61
7.3.270.0090.01116.77
7.3.260.0110.00616.82
7.3.250.0120.01316.67
7.3.240.0110.00616.85
7.3.230.0070.01116.84
7.3.210.0070.01016.75
7.3.200.0110.01119.39
7.3.190.0100.00716.84
7.3.180.0090.00616.84
7.3.170.0150.00616.77
7.3.160.0100.00916.67
7.3.120.0070.00715.10
7.3.10.0090.00316.74
7.3.00.0030.00816.81
7.2.330.0090.00917.15
7.2.320.0070.01116.97
7.2.310.0130.01016.94
7.2.300.0120.01217.01
7.2.290.0070.01016.85
7.2.130.0000.01416.93
7.2.120.0060.00616.92
7.2.110.0100.00616.96
7.2.100.0000.01016.85
7.2.90.0030.01117.05
7.2.80.0170.00717.00
7.2.70.0040.01316.98
7.2.60.0030.01017.04
7.2.50.0100.00717.03
7.2.40.0030.00917.13
7.2.30.0040.00716.96
7.2.20.0000.01217.06
7.2.10.0040.00717.04
7.2.00.0040.00718.31
7.1.250.0040.00715.74
7.1.100.0040.01118.37
7.1.70.0030.00917.36
7.1.60.0070.01119.40
7.1.50.0000.01216.91
7.1.00.0030.06322.49
7.0.200.0150.00615.18
7.0.140.0070.07022.21
7.0.120.0030.07322.20
7.0.60.0070.03720.18
7.0.50.0100.05318.05
7.0.40.0070.04320.52
7.0.30.0100.05020.40
7.0.20.0200.04020.19
7.0.10.0070.08720.46
7.0.00.0200.05320.35
5.6.280.0000.07721.09
5.6.210.0030.04020.78
5.6.200.0100.04318.27
5.6.190.0030.07720.49
5.6.180.0230.04020.90
5.6.170.0300.07720.75
5.6.160.0070.04020.69
5.6.150.0070.08018.37
5.6.140.0000.05718.39
5.6.130.0130.07318.33
5.6.120.0070.04021.08
5.6.110.0070.04321.25
5.6.100.0170.06021.18
5.6.90.0170.05321.06
5.6.80.0030.04320.54
5.6.70.1730.02720.62
5.5.350.0170.08720.53
5.5.340.0030.05318.07
5.5.330.0230.07720.34
5.5.320.0030.05020.40
5.5.310.0370.07320.55
5.5.300.0130.07318.19
5.5.290.0130.07318.09
5.5.280.0100.05720.91
5.5.270.0170.07321.08
5.5.260.0030.04021.08
5.5.250.0030.04020.90
5.5.240.0200.08320.48
5.4.450.2300.03319.41
5.4.440.2430.03319.56
5.4.430.2300.03719.38
5.4.420.2630.04019.64
5.4.410.2530.03719.62
5.4.400.2170.03719.35
5.4.390.0000.04019.43
5.4.380.0030.03719.32
5.4.370.1100.04019.06
5.4.360.2130.03719.09
5.4.350.2300.03019.38
5.4.340.2270.03319.38
5.4.320.2070.03319.24
5.4.310.2170.04019.46
5.4.300.2270.03019.39
5.4.290.2070.03719.04
5.4.280.2070.03319.21
5.4.270.2200.04019.04
5.4.260.1130.04019.04
5.4.250.0000.04019.37
5.4.240.0070.03319.03
5.4.230.1230.03319.14
5.4.220.1870.03719.08
5.4.210.2000.03719.28
5.4.200.2230.03319.34
5.4.190.2270.04319.36
5.4.180.2230.03319.08
5.4.170.1770.04019.22
5.4.160.2170.03719.38
5.4.150.2030.04019.43
5.4.140.2070.03316.73
5.4.130.2070.03716.63
5.4.120.2100.04016.50
5.4.110.2230.04016.66
5.4.100.2400.03716.49
5.4.90.2400.03316.70
5.4.80.2400.03316.42
5.4.70.2530.02316.62
5.4.60.2200.03716.31
5.4.50.2270.03716.47
5.4.40.2200.03016.69
5.4.30.2130.04316.63
5.4.20.2200.02716.65
5.4.10.2430.03716.48
5.4.00.1900.04015.87
5.3.290.2370.04314.74
5.3.280.2230.03314.64
5.3.270.2200.03314.71
5.3.260.2430.04014.65
5.3.250.2370.04014.80
5.3.240.2200.03714.68
5.3.230.2400.04014.85
5.3.220.2430.03714.59
5.3.210.2530.04714.63
5.3.200.2770.02714.62
5.3.190.2470.03714.73
5.3.180.2630.04014.80
5.3.170.2670.03014.64
5.3.160.2370.03714.83
5.3.150.2400.03314.65
5.3.140.2630.03314.66
5.3.130.1270.04714.65
5.3.120.0070.03714.59
5.3.110.0000.04314.75
5.3.100.1630.03714.30
5.3.90.2200.04314.10
5.3.80.2130.04014.27
5.3.70.1870.03314.12
5.3.60.1800.03714.00
5.3.50.2030.03714.00
5.3.40.2330.03714.02
5.3.30.2300.04014.02
5.3.20.2470.03713.80
5.3.10.2130.03713.92
5.3.00.2200.03313.70
5.2.170.1870.02711.20
5.2.160.1930.02711.36
5.2.150.2070.03011.32
5.2.140.1900.02311.31
5.2.130.1870.04711.32
5.2.120.1700.03011.34
5.2.110.1830.03011.16
5.2.100.2170.03011.18
5.2.90.1870.03311.16
5.2.80.1970.02711.17
5.2.70.1900.03711.40
5.2.60.2000.03311.25
5.2.50.2030.03011.23
5.2.40.1630.03311.05
5.2.30.1700.02711.04
5.2.20.1500.02711.14
5.2.10.1630.03711.15
5.2.00.1670.03010.91
5.1.60.1630.03010.14
5.1.50.1670.02710.29
5.1.40.1500.02010.10
5.1.30.1470.02710.48
5.1.20.1670.03010.65
5.1.10.1770.03010.34
5.1.00.1670.02710.43
5.0.50.0900.0338.63
5.0.40.0730.0238.54
5.0.30.0670.0308.54
5.0.20.0900.0238.54
5.0.10.0930.0278.54
5.0.00.0870.0408.54
4.4.90.1130.0208.54
4.4.80.0970.0178.54
4.4.70.1000.0208.54
4.4.60.0670.0208.54
4.4.50.0970.0278.54
4.4.40.0870.0278.54
4.4.30.0930.0138.54
4.4.20.0570.0178.54
4.4.10.0770.0278.54
4.4.00.0700.0238.54
4.3.110.0800.0208.54
4.3.100.1000.0138.54
4.3.90.0930.0238.54
4.3.80.0870.0278.54
4.3.70.0730.0108.54
4.3.60.0730.0138.54
4.3.50.1000.0178.54
4.3.40.0770.0278.54
4.3.30.0330.0178.54
4.3.20.0530.0238.54
4.3.10.0570.0278.54
4.3.00.0630.0238.54

preferences:
49.34 ms | 400 KiB | 5 Q