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; $tak = file_get_contents('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml'); $xml = simplexml_load_string($tak); $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.0120.00318.68
8.3.50.0070.01022.05
8.3.40.0110.00319.21
8.3.30.0120.00619.29
8.3.20.0080.00020.57
8.3.10.0080.00022.34
8.3.00.0040.00422.59
8.2.180.0160.00616.63
8.2.170.0150.00722.96
8.2.160.0040.01219.41
8.2.150.0080.00624.18
8.2.140.0040.00424.66
8.2.130.0090.00926.16
8.2.120.0080.00019.79
8.2.110.0000.01022.17
8.2.100.0090.00319.42
8.2.90.0040.00419.17
8.2.80.0000.00918.05
8.2.70.0030.00617.87
8.2.60.0080.00018.05
8.2.50.0080.00318.07
8.2.40.0000.00818.28
8.2.30.0050.00218.19
8.2.20.0030.00617.79
8.2.10.0000.00817.88
8.2.00.0030.00617.83
8.1.280.0070.01425.92
8.1.270.0030.00623.94
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00524.09
8.1.230.0070.00419.29
8.1.220.0030.00517.80
8.1.210.0050.00318.77
8.1.200.0090.00017.34
8.1.190.0000.00817.53
8.1.180.0080.00018.82
8.1.170.0000.00818.71
8.1.160.0000.00722.38
8.1.150.0040.00418.82
8.1.140.0000.00717.47
8.1.130.0050.00318.03
8.1.120.0000.00717.65
8.1.110.0040.00717.50
8.1.100.0000.00717.38
8.1.90.0000.00817.51
8.1.80.0000.00717.49
8.1.70.0030.00317.56
8.1.60.0040.00417.67
8.1.50.0040.00417.64
8.1.40.0080.00017.68
8.1.30.0050.00317.75
8.1.20.0030.00617.93
8.1.10.0000.00917.73
8.1.00.0040.00417.75
8.0.300.0040.00418.77
8.0.290.0040.00417.29
8.0.280.0050.00218.63
8.0.270.0030.00317.40
8.0.260.0000.01016.96
8.0.250.0030.00417.04
8.0.240.0000.00817.25
8.0.230.0000.00717.16
8.0.220.0000.00717.05
8.0.210.0000.00717.06
8.0.200.0000.00717.19
8.0.190.0000.00717.14
8.0.180.0040.00417.16
8.0.170.0040.00417.03
8.0.160.0040.00417.13
8.0.150.0070.00016.92
8.0.140.0040.00417.05
8.0.130.0000.00613.68
8.0.120.0080.00017.18
8.0.110.0000.00817.23
8.0.100.0080.00017.07
8.0.90.0050.00317.09
8.0.80.0110.00417.20
8.0.70.0040.00417.18
8.0.60.0050.00317.16
8.0.50.0080.00017.14
8.0.30.0150.00517.27
8.0.20.0130.00617.41
8.0.10.0050.00317.15
8.0.00.0100.01416.99
7.4.330.0000.00515.00
7.4.320.0000.00716.68
7.4.300.0000.00616.67
7.4.290.0030.00516.73
7.4.280.0100.00016.62
7.4.270.0000.00716.71
7.4.260.0000.00816.71
7.4.250.0000.00816.75
7.4.240.0040.00416.80
7.4.230.0030.00316.65
7.4.220.0090.00616.77
7.4.210.0080.00816.79
7.4.200.0030.00516.76
7.4.190.0040.00416.84
7.4.160.0110.00616.74
7.4.150.0090.01517.40
7.4.140.0120.01417.86
7.4.130.0170.00216.83
7.4.120.0080.01016.75
7.4.110.0000.01916.79
7.4.100.0150.00616.73
7.4.90.0070.01116.70
7.4.80.0070.01119.39
7.4.70.0070.01016.70
7.4.60.0120.00616.74
7.4.50.0050.00016.80
7.4.40.0120.00222.77
7.4.30.0070.01016.80
7.4.00.0090.00915.25
7.3.330.0050.00013.33
7.3.320.0040.00413.54
7.3.310.0070.00016.48
7.3.300.0080.00016.55
7.3.290.0130.00716.52
7.3.280.0070.00916.54
7.3.270.0140.00317.40
7.3.260.0150.00916.41
7.3.250.0100.00916.64
7.3.240.0060.01616.62
7.3.230.0190.01116.55
7.3.210.0060.01516.61
7.3.200.0070.01116.72
7.3.190.0070.01016.43
7.3.180.0060.00916.59
7.3.170.0100.00716.94
7.3.160.0110.00516.46
7.3.120.0160.00014.96
7.3.10.0130.00316.63
7.3.00.0110.00616.39
7.2.330.0060.01316.72
7.2.320.0040.02016.80
7.2.310.0030.01416.86
7.2.300.0070.01316.93
7.2.290.0030.01416.56
7.2.130.0110.00616.88
7.2.120.0140.00016.82
7.2.110.0160.00716.98
7.2.100.0060.01216.64
7.2.90.0120.00916.64
7.2.80.0100.01016.94
7.2.70.0070.01316.00
7.2.60.0100.00716.80
7.2.50.0130.00616.54
7.2.40.0230.00316.44
7.2.30.0200.00016.88
7.2.20.0030.01316.63
7.2.10.0130.00616.49
7.2.00.0070.00818.20
7.1.250.0100.01016.07
7.1.200.0090.00615.86
7.1.100.0030.00918.05
7.1.70.0000.00817.53
7.1.60.0160.00919.82
7.1.50.0040.01116.98
7.1.00.0030.03322.76
7.0.200.0000.01016.67
7.0.140.0030.07322.31
7.0.100.0100.07720.22
7.0.90.0030.05720.36
7.0.80.0100.07320.44
7.0.70.0070.08020.16
7.0.60.0000.08720.24
7.0.50.0070.07720.53
7.0.40.0070.05020.44
7.0.30.0100.07320.43
7.0.20.0100.08020.38
7.0.10.0100.08020.52
7.0.00.0100.08320.32
5.6.280.0070.07321.44
5.6.250.0130.04021.09
5.6.240.0130.04321.17
5.6.230.0130.07020.91
5.6.220.0030.07721.06
5.6.210.0070.07721.00
5.6.200.0070.07321.39
5.6.190.0200.07021.52
5.6.180.0130.08021.44
5.6.170.0230.06021.30
5.6.160.0130.08021.34
5.6.150.0170.06021.37
5.6.140.0100.07721.39
5.6.130.0030.04721.37
5.6.120.0030.08021.42
5.6.110.0070.08721.21
5.6.100.0070.08321.43
5.6.90.0070.07721.47
5.6.80.0200.07020.83
5.6.70.0030.05720.86
5.6.60.0070.06020.74
5.6.50.0070.08320.69
5.6.40.0000.08320.75
5.6.30.0100.08320.85
5.6.20.0100.04020.94
5.6.10.0170.06720.75
5.6.00.0070.07720.70
5.5.380.0000.04320.66
5.5.370.0030.04320.85
5.5.360.0030.04020.73
5.5.350.0070.07720.83
5.5.340.0230.06321.28
5.5.330.0030.08321.03
5.5.320.0100.05021.20
5.5.310.0100.07721.09
5.5.300.0000.08021.25
5.5.290.0130.07721.00
5.5.280.0070.08721.18
5.5.270.0100.07721.09
5.5.260.0100.08321.04
5.5.250.0070.08720.84
5.5.240.0030.08320.58
5.5.230.0070.08320.41
5.5.220.0100.07320.59
5.5.210.0070.08020.69
5.5.200.0070.08020.42
5.5.190.0000.08720.66
5.5.180.0070.08020.59
5.5.160.0170.06320.63
5.5.150.0100.07720.60
5.5.140.0070.05320.66
5.5.130.0170.07320.55
5.5.120.0200.06320.41
5.5.110.0070.07020.68
5.5.100.0030.05020.58
5.5.90.0070.07720.49
5.5.80.0170.06720.30
5.5.70.0100.07320.52
5.5.60.0070.07720.50
5.5.50.0030.06720.45
5.5.40.0100.08020.40
5.5.30.0130.07320.43
5.5.20.0030.05320.43
5.5.10.0170.07320.50
5.5.00.0030.04020.38
5.4.450.0170.07319.79
5.4.440.0030.05319.81
5.4.430.0030.08019.83
5.4.420.0130.06019.70
5.4.410.0200.05319.68
5.4.400.0170.06319.60
5.4.390.0070.07719.26
5.4.380.0200.06319.45
5.4.370.0070.08019.59
5.4.360.0030.06719.45
5.4.350.0100.07719.59
5.4.340.0130.05019.27
5.4.320.0070.06719.59
5.4.310.0070.06719.37
5.4.300.0130.06719.36
5.4.290.0070.06019.56
5.4.280.0170.07319.44
5.4.270.0170.06719.55
5.4.260.0100.07719.44
5.4.250.0130.06719.41
5.4.240.0130.06319.40
5.4.230.0100.07319.25
5.4.220.0100.07319.45
5.4.210.0030.08319.32
5.4.200.0130.07719.45
5.4.190.0130.06319.48
5.4.180.0030.08019.54
5.4.170.0170.06019.44
5.4.160.0070.06019.20
5.4.150.0100.08019.39
5.4.140.0070.06316.98
5.4.130.0070.05016.88
5.4.120.0030.04016.64
5.4.110.0100.03716.82
5.4.100.0030.03716.84
5.4.90.0030.04016.65
5.4.80.0030.03716.82
5.4.70.0000.03716.81
5.4.60.0100.02716.81
5.4.50.0030.03716.82
5.4.40.0030.04716.75
5.4.30.0000.04016.75
5.4.20.0000.04016.64
5.4.10.0030.03716.64
5.4.00.0030.03316.23
5.3.290.0200.06714.91
5.3.280.0070.07714.84
5.3.270.0130.07314.80
5.3.260.0000.04314.84
5.3.250.0070.04314.85
5.3.240.0100.04314.82
5.3.230.0030.04314.87
5.3.220.0070.07314.79
5.3.210.0070.04714.77
5.3.200.0000.04014.82
5.3.190.0030.03714.79
5.3.180.0070.03314.81
5.3.170.0000.04014.90
5.3.160.0000.04014.81
5.3.150.0070.05014.75
5.3.140.0070.02714.80
5.3.130.0000.04314.74
5.3.120.0030.04014.79
5.3.110.0000.04014.80
5.3.100.0070.03314.29
5.3.90.0070.04714.26
5.3.80.0030.07014.23
5.3.70.0070.03314.23
5.3.60.0030.07314.34
5.3.50.0030.03314.22
5.3.40.0100.06714.19
5.3.30.0030.07714.12
5.3.20.0100.07013.98
5.3.10.0030.06013.89
5.3.00.0070.04313.88
5.2.170.0070.02312.65
5.2.160.0100.06012.65
5.2.150.0030.04312.65
5.2.140.0070.04012.65
5.2.130.0000.03012.65
5.2.120.0030.04012.65
5.2.110.0070.02312.65
5.2.100.0030.04012.65
5.2.90.0030.02712.65
5.2.80.0000.03012.65
5.2.70.0000.03012.65
5.2.60.0000.03312.65
5.2.50.0000.03012.65
5.2.40.0000.05012.65
5.2.30.0000.03712.65
5.2.20.0070.03012.65
5.2.10.0000.03012.65
5.2.00.0030.02712.65
5.1.60.0000.03012.65
5.1.50.0030.02012.65
5.1.40.0030.02312.65
5.1.30.0070.03312.65
5.1.20.0100.02012.65
5.1.10.0000.02712.65
5.1.00.0030.02712.65
5.0.50.0000.02312.65
5.0.40.0030.02312.65
5.0.30.0000.03012.65
5.0.20.0000.02312.65
5.0.10.0000.03312.65
5.0.00.0030.03012.65
4.4.90.0030.01312.65
4.4.80.0000.01712.65
4.4.70.0000.01712.65
4.4.60.0030.01312.65
4.4.50.0030.01312.65
4.4.40.0030.02312.65
4.4.30.0000.01712.65
4.4.20.0000.01712.65
4.4.10.0030.01312.65
4.4.00.0000.03712.65
4.3.110.0030.01312.65
4.3.100.0000.02312.65
4.3.90.0000.03012.65
4.3.80.0070.02012.65
4.3.70.0000.01312.65
4.3.60.0000.01712.65
4.3.50.0030.01312.65
4.3.40.0000.03012.65
4.3.30.0000.02312.65
4.3.20.0000.01712.65
4.3.10.0000.01712.65
4.3.00.0070.01012.65

preferences:
44.95 ms | 401 KiB | 5 Q