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(file_get_contents('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml')); $xml->registerXPathNamespace('c', 'http://www.ecb.int/vocabulary/2002-08-01/eurofxref'); $result = $xml->xpath('//c:Cube[@currency="USD"]'); echo var_dump($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.60.0070.00718.43
8.3.50.0100.00721.27
8.3.40.0110.01119.21
8.3.30.0120.00319.09
8.3.20.0080.00019.20
8.3.10.0080.00020.89
8.3.00.0060.00319.63
8.2.180.0150.00717.00
8.2.170.0140.00022.96
8.2.160.0110.00622.33
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00820.02
8.2.110.0060.00619.61
8.2.100.0090.00317.97
8.2.90.0060.00319.17
8.2.80.0000.00817.97
8.2.70.0030.00717.88
8.2.60.0000.00818.16
8.2.50.0030.00618.07
8.2.40.0030.00618.28
8.2.30.0050.00320.00
8.2.20.0000.00717.78
8.2.10.0030.00617.98
8.2.00.0030.00517.83
8.1.280.0070.00725.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0110.01122.20
8.1.230.0100.00322.88
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.47
8.1.190.0050.00317.64
8.1.180.0030.00518.10
8.1.170.0050.00319.01
8.1.160.0050.00319.05
8.1.150.0040.00418.79
8.1.140.0000.00717.59
8.1.130.0070.00018.04
8.1.120.0000.00817.54
8.1.110.0000.00717.48
8.1.100.0000.00717.60
8.1.90.0040.00417.42
8.1.80.0040.00417.58
8.1.70.0050.00217.55
8.1.60.0040.00417.67
8.1.50.0080.00017.59
8.1.40.0000.00817.72
8.1.30.0040.00417.76
8.1.20.0080.00017.91
8.1.10.0030.00617.72
8.1.00.0040.00417.67
8.0.300.0070.00419.98
8.0.290.0000.00716.88
8.0.280.0080.00018.70
8.0.270.0040.00417.36
8.0.260.0030.00318.93
8.0.250.0050.00317.27
8.0.240.0090.00017.04
8.0.230.0000.00717.29
8.0.220.0030.00317.06
8.0.210.0040.00417.14
8.0.200.0030.00317.12
8.0.190.0000.00717.29
8.0.180.0060.00317.14
8.0.170.0030.00617.23
8.0.160.0050.00317.13
8.0.150.0000.00817.08
8.0.140.0030.00916.96
8.0.130.0030.00313.62
8.0.120.0000.00817.24
8.0.110.0080.00017.25
8.0.100.0080.00017.09
8.0.90.0060.00317.04
8.0.80.0110.00417.19
8.0.70.0040.00417.24
8.0.60.0040.00417.11
8.0.50.0070.00017.11
8.0.30.0120.00717.14
8.0.20.0100.01017.56
8.0.10.0000.00817.34
8.0.00.0080.01417.01
7.4.330.0050.00013.43
7.4.320.0060.00016.52
7.4.300.0030.00316.65
7.4.290.0040.00416.68
7.4.280.0050.00216.87
7.4.270.0030.00316.80
7.4.260.0030.00313.54
7.4.250.0030.00616.90
7.4.240.0000.00816.88
7.4.230.0000.00716.82
7.4.220.0100.01116.89
7.4.210.0090.00916.78
7.4.200.0040.00416.88
7.4.190.0030.00316.90
7.4.160.0120.00316.59
7.4.150.0070.01117.40
7.4.140.0080.01117.36
7.4.130.0090.00916.76
7.4.120.0070.01016.73
7.4.110.0110.00716.89
7.4.100.0110.00716.82
7.4.90.0120.00816.82
7.4.80.0070.01119.03
7.4.70.0100.00716.81
7.4.60.0100.00716.82
7.4.50.0030.00616.62
7.4.40.0060.01022.27
7.4.30.0140.00416.83
7.4.00.0070.00715.37
7.3.330.0000.00513.43
7.3.320.0030.00313.32
7.3.310.0030.00316.68
7.3.300.0000.00716.68
7.3.290.0120.00416.47
7.3.280.0120.00516.54
7.3.270.0080.01317.40
7.3.260.0120.01118.24
7.3.250.0100.01116.62
7.3.240.0120.00916.63
7.3.230.0090.00916.71
7.3.210.0150.00316.74
7.3.200.0060.01619.39
7.3.190.0070.01616.48
7.3.180.0130.00916.66
7.3.170.0150.00616.60
7.3.160.0100.00916.45
7.3.120.0100.00715.04
7.2.330.0090.01016.91
7.2.320.0200.00616.70
7.2.310.0060.01316.56
7.2.300.0090.00916.93
7.2.290.0110.00816.66
7.2.60.0070.01017.04
7.2.00.0040.01419.80
7.1.200.0150.00015.94
7.1.100.0060.00618.16
7.1.70.0000.00717.41
7.1.60.0110.01519.40
7.1.50.0080.00817.26
7.1.00.0030.06322.83
7.0.200.0190.00517.00
7.0.140.0070.07022.50
7.0.60.0100.07320.39
7.0.50.0070.06018.13
7.0.40.0000.06020.54
7.0.30.0430.06320.55
7.0.20.0300.06020.49
7.0.10.0370.07720.52
7.0.00.0030.07720.51
5.6.280.0030.07321.46
5.6.210.0070.03721.05
5.6.200.0030.06018.60
5.6.190.0100.07321.14
5.6.180.0300.08721.04
5.6.170.0300.07720.89
5.6.160.0000.08020.86
5.6.150.0000.05318.49
5.6.140.0170.07718.54
5.6.130.0130.05318.62
5.6.120.0130.03721.42
5.6.110.0070.08021.22
5.6.100.0200.07721.49
5.6.90.0130.07321.48
5.6.80.0130.08020.67
5.6.70.3870.05020.91
5.5.350.3730.04720.95
5.5.340.0130.03018.36
5.5.330.0200.06720.89
5.5.320.0170.05020.73
5.5.310.0130.05020.64
5.5.300.0200.05718.22
5.5.290.0130.03318.33
5.5.280.0070.06021.12
5.5.270.0000.04721.20
5.5.260.0100.08321.23
5.5.250.0030.08320.90
5.5.240.0100.07320.45
5.4.450.1730.04019.93
5.4.440.1500.04319.97
5.4.430.1700.04019.97
5.4.420.1630.05719.96
5.4.410.1700.04019.96
5.4.400.1600.03019.61
5.4.390.1730.05019.84
5.4.380.1530.03719.59
5.4.370.1570.04319.64
5.4.360.1800.04719.70
5.4.350.1730.04719.77
5.4.340.1500.03319.65
5.4.320.1700.03719.56
5.4.310.1570.04019.71
5.4.300.1670.05319.73
5.4.290.1670.04719.58
5.4.280.1530.03719.71
5.4.270.1500.03319.73
5.4.260.1600.05019.64
5.4.250.1770.04719.64
5.4.240.1500.03319.72
5.4.230.1570.04019.60
5.4.220.1430.04019.64
5.4.210.1700.04319.55
5.4.200.1700.04019.63
5.4.190.1630.04719.54
5.4.180.1700.04319.78
5.4.170.1700.05319.64
5.4.160.1730.04019.67
5.4.150.1730.05019.64
5.4.140.1500.03317.11
5.4.130.1700.04716.99
5.4.120.1670.04316.96
5.4.110.1570.02716.92
5.4.100.1570.04317.16
5.4.90.1630.05317.14
5.4.80.1530.03317.03
5.4.70.1600.04317.03
5.4.60.1500.03317.12
5.4.50.1770.03317.11
5.4.40.1530.03316.96
5.4.30.1500.03717.16
5.4.20.1730.04017.13
5.4.10.1570.03717.16
5.4.00.1630.03716.59
5.3.290.1930.04315.01
5.3.280.1830.04315.10
5.3.270.1770.04315.01
5.3.260.1730.04715.05
5.3.250.1570.03715.00
5.3.240.1570.04015.05
5.3.230.1570.03315.02
5.3.220.1630.03715.02
5.3.210.1730.03714.83
5.3.200.1530.04315.06
5.3.190.1570.03714.76
5.3.180.1570.04014.82
5.3.170.1570.03715.07
5.3.160.1870.04014.88
5.3.150.1870.04015.00
5.3.140.1800.04714.99
5.3.130.1570.04014.83
5.3.120.1570.04015.04
5.3.110.1670.03314.86
5.3.100.1570.03714.33
5.3.90.1830.05014.22
5.3.80.1670.04014.19
5.3.70.1530.03314.22
5.3.60.1770.04314.49
5.3.50.1800.04014.20
5.3.40.1800.04014.26
5.3.30.1830.03714.31
5.3.20.1700.04713.89
5.3.10.1670.02314.07
5.3.00.1800.04013.98
5.2.170.1400.03011.38
5.2.160.1470.04011.57
5.2.150.1400.03011.34
5.2.140.1470.03711.37
5.2.130.1500.03011.28
5.2.120.1100.02711.39
5.2.110.1500.03011.60
5.2.100.1400.03011.52
5.2.90.1330.02711.36
5.2.80.1330.03011.38
5.2.70.1530.04011.52
5.2.60.1500.03311.32
5.2.50.1430.03311.43
5.2.40.1130.03011.38
5.2.30.1270.03711.39
5.2.20.1300.02711.18
5.2.10.1170.03311.08
5.2.00.1170.03311.13
5.1.60.1270.03010.32
5.1.50.1230.03310.49
5.1.40.1230.03310.38
5.1.30.1170.03010.82
5.1.20.1200.03310.80
5.1.10.1230.03010.64
5.1.00.1000.02710.32
5.0.50.0500.0208.87
5.0.40.0570.0238.61
5.0.30.0600.0438.56
5.0.20.0670.0308.48
5.0.10.0570.0138.41
5.0.00.0600.0408.56
4.4.90.0670.0236.95
4.4.80.0600.0276.95
4.4.70.0530.0176.95
4.4.60.0600.0176.95
4.4.50.0600.0276.95
4.4.40.0570.0306.95
4.4.30.0600.0136.95
4.4.20.0630.0136.95
4.4.10.0530.0206.95
4.4.00.0530.0206.95
4.3.110.0570.0176.95
4.3.100.0630.0176.95
4.3.90.0600.0276.95
4.3.80.0670.0376.95
4.3.70.0500.0176.95
4.3.60.0670.0206.95
4.3.50.0670.0276.95
4.3.40.0630.0376.95
4.3.30.0230.0206.95
4.3.20.0270.0276.95
4.3.10.0330.0236.95
4.3.00.0270.0176.95

preferences:
41.81 ms | 401 KiB | 5 Q