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'); echo count($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.0110.01118.52
8.3.50.0090.01422.16
8.3.40.0100.01019.21
8.3.30.0070.00720.71
8.3.20.0040.00419.05
8.3.10.0080.00019.32
8.3.00.0080.00019.81
8.2.180.0200.00716.88
8.2.170.0090.00922.96
8.2.160.0080.00619.16
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0050.00320.10
8.2.110.0050.00520.85
8.2.100.0080.00418.22
8.2.90.0050.00319.61
8.2.80.0000.00719.50
8.2.70.0060.00317.75
8.2.60.0080.00018.41
8.2.50.0100.00318.07
8.2.40.0050.00318.47
8.2.30.0040.00419.75
8.2.20.0040.00417.98
8.2.10.0040.00418.03
8.2.00.0040.00418.20
8.1.280.0040.01125.92
8.1.270.0040.00424.17
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00622.79
8.1.230.0110.00023.13
8.1.220.0050.00318.77
8.1.210.0030.00619.22
8.1.200.0000.00817.72
8.1.190.0080.00017.76
8.1.180.0040.00418.10
8.1.170.0000.00818.95
8.1.160.0050.00319.29
8.1.150.0040.00419.06
8.1.140.0040.00417.90
8.1.130.0030.00318.18
8.1.120.0040.00417.79
8.1.110.0080.00017.80
8.1.100.0000.00917.88
8.1.90.0000.00717.95
8.1.80.0040.00417.77
8.1.70.0030.00317.75
8.1.60.0000.00817.89
8.1.50.0050.00317.77
8.1.40.0040.00417.79
8.1.30.0080.00018.10
8.1.20.0040.00417.90
8.1.10.0040.00417.94
8.1.00.0000.00717.68
8.0.300.0000.00720.52
8.0.290.0040.00417.53
8.0.280.0000.00718.70
8.0.270.0070.00017.50
8.0.260.0030.00317.24
8.0.250.0000.00717.53
8.0.240.0000.00817.42
8.0.230.0030.00317.25
8.0.220.0040.00417.25
8.0.210.0070.00017.18
8.0.200.0030.00317.22
8.0.190.0000.00817.22
8.0.180.0000.00717.11
8.0.170.0000.00717.39
8.0.160.0050.00317.40
8.0.150.0030.00517.18
8.0.140.0030.00517.36
8.0.130.0000.00613.70
8.0.120.0040.00417.37
8.0.110.0070.00017.24
8.0.100.0000.00717.16
8.0.90.0040.00417.30
8.0.80.0030.01317.29
8.0.70.0080.00017.26
8.0.60.0070.00017.26
8.0.50.0000.00817.30
8.0.30.0130.00517.56
8.0.20.0150.00817.68
8.0.10.0000.00717.28
8.0.00.0060.01417.18
7.4.330.0050.00017.09
7.4.320.0000.00716.94
7.4.300.0060.00016.89
7.4.290.0030.00316.91
7.4.280.0000.00716.95
7.4.270.0000.00716.86
7.4.260.0030.00313.73
7.4.250.0000.00717.01
7.4.240.0040.00416.97
7.4.230.0000.00716.79
7.4.220.0030.01616.96
7.4.210.0070.00816.99
7.4.200.0030.00316.91
7.4.190.0030.00316.84
7.4.160.0040.01316.80
7.4.150.0090.00917.40
7.4.140.0130.00717.86
7.4.130.0100.00716.88
7.4.120.0090.00916.84
7.4.110.0070.01016.71
7.4.100.0130.00617.04
7.4.90.0070.01116.81
7.4.80.0070.01019.39
7.4.70.0050.01216.91
7.4.60.0130.00316.87
7.4.50.0060.00316.79
7.4.40.0130.00322.77
7.4.30.0070.01416.96
7.4.00.0070.00715.32
7.3.330.0050.00013.58
7.3.320.0060.00013.37
7.3.310.0070.00016.56
7.3.300.0030.00316.46
7.3.290.0060.00916.64
7.3.280.0090.00716.74
7.3.270.0000.01717.40
7.3.260.0080.00918.24
7.3.250.0090.00916.74
7.3.240.0120.00416.70
7.3.230.0130.00616.91
7.3.210.0060.01416.70
7.3.200.0030.02019.39
7.3.190.0140.00316.82
7.3.180.0060.01516.79
7.3.170.0130.00316.63
7.3.160.0090.01216.74
7.3.120.0000.01514.98
7.3.10.0090.00816.63
7.3.00.0160.00516.66
7.2.330.0090.01416.91
7.2.320.0100.00716.69
7.2.310.0100.01016.94
7.2.300.0070.01116.99
7.2.290.0100.00717.09
7.2.130.0100.00616.73
7.2.120.0050.01216.81
7.2.110.0150.00216.60
7.2.100.0120.00616.59
7.2.90.0070.01316.81
7.2.80.0100.00616.79
7.2.70.0060.01016.95
7.2.60.0050.01316.79
7.2.50.0090.00516.86
7.2.40.0100.00717.01
7.2.30.0110.00816.75
7.2.20.0050.00916.93
7.2.10.0120.00416.73
7.2.00.0090.01217.82
7.1.250.0100.01015.87
7.1.100.0000.00818.34
7.1.70.0040.00417.12
7.1.60.0090.01519.24
7.1.50.0140.00016.79
7.1.00.0030.03322.79
7.0.200.0040.00416.71
7.0.140.0000.07722.11
7.0.60.0130.08721.93
7.0.50.0100.07018.11
7.0.40.0100.08720.18
7.0.30.0400.06320.41
7.0.20.0370.07320.38
7.0.10.0030.07720.18
7.0.00.0030.06320.23
5.6.280.0030.07321.12
5.6.210.0030.05720.71
5.6.200.0100.07718.38
5.6.190.0000.05020.88
5.6.180.0270.04720.85
5.6.170.0330.06320.58
5.6.160.0070.08320.63
5.6.150.0100.04018.32
5.6.140.0070.07718.38
5.6.130.0130.07718.39
5.6.120.0070.06321.13
5.6.110.0100.06021.14
5.6.100.0270.06721.23
5.6.90.0200.06321.10
5.6.80.0130.05020.56
5.5.350.0230.06720.51
5.5.340.0070.07718.19
5.5.330.0070.05020.38
5.5.320.0300.05020.38
5.5.310.0270.05320.57
5.5.300.0130.06718.13
5.5.290.0070.06318.21
5.5.280.0070.05721.09
5.5.270.0070.04720.97
5.5.260.0070.06321.08
5.5.250.0100.08020.73
5.5.240.0070.08320.34
5.4.450.0270.03719.61
5.4.440.0370.06719.52
5.4.430.0130.04719.51
5.4.420.0170.06019.60
5.4.410.0230.04719.50
5.4.400.0200.04719.14
5.4.390.0230.08019.38
5.4.380.0370.06019.20
5.4.370.0330.06719.38
5.4.360.0400.03319.42
5.4.350.0500.05019.30
5.4.340.0430.05719.13
5.4.320.0270.06019.19
5.4.310.0200.04719.15
5.4.300.0200.04019.29
5.4.290.0170.04019.19
5.4.280.0130.04019.02
5.4.270.0200.03719.02
5.4.260.0200.04019.02
5.4.250.0270.03019.26
5.4.240.0200.03719.18
5.4.230.0270.05319.19
5.4.220.0230.03719.37
5.4.210.0170.04319.02
5.4.200.0270.03019.13
5.4.190.0230.08319.13
5.4.180.0330.06319.34
5.4.170.0200.04019.18
5.4.160.0200.03719.28
5.4.150.0200.04319.00
5.4.140.0200.03316.53
5.4.130.0130.04016.45
5.4.120.0130.04016.52
5.4.110.0170.03716.50
5.4.100.0200.03716.56
5.4.90.0230.03316.49
5.4.80.0170.03316.75
5.4.70.0230.03716.50
5.4.60.0200.03316.54
5.4.50.0200.03716.46
5.4.40.0230.03316.64
5.4.30.0230.03016.56
5.4.20.0200.04016.50
5.4.10.0270.02716.65
5.4.00.0170.04016.03
5.3.290.0300.03714.74
5.3.280.0200.03714.80
5.3.270.0270.05314.77
5.3.260.0230.03314.82
5.3.250.0200.03714.76
5.3.240.0170.03714.61
5.3.230.0270.03014.74
5.3.220.0170.03714.72
5.3.210.0230.04014.60
5.3.200.0130.04014.67
5.3.190.0230.03014.77
5.3.180.0170.03714.59
5.3.170.0130.03714.77
5.3.160.0200.03714.71
5.3.150.0170.03714.57
5.3.140.0170.03714.77
5.3.130.0200.03714.75
5.3.120.0170.04014.60
5.3.110.0230.03314.60
5.3.100.0230.03014.13
5.3.90.0330.06714.26
5.3.80.0270.07014.01
5.3.70.0300.04014.26
5.3.60.0300.05714.17
5.3.50.0300.07314.09
5.3.40.0270.04014.15
5.3.30.0300.03014.00
5.3.20.0300.05013.86
5.3.10.0300.03313.77
5.3.00.0230.03713.63
5.2.170.0230.03011.38
5.2.160.0230.03311.25
5.2.150.0270.05711.29
5.2.140.0300.05311.35
5.2.130.0200.03711.35
5.2.120.0230.03711.30
5.2.110.0200.03011.23
5.2.100.0230.05711.24
5.2.90.0230.03311.15
5.2.80.0330.04011.24
5.2.70.0230.04711.30
5.2.60.0200.05011.18
5.2.50.0200.03711.23
5.2.40.0200.02711.13
5.2.30.0230.05311.27
5.2.20.0200.03011.07
5.2.10.0270.05011.13
5.2.00.0200.05010.89
5.1.60.0230.05010.30
5.1.50.0300.04710.24
5.1.40.0200.04710.29
5.1.30.0230.05310.46
5.1.20.0230.04010.64
5.1.10.0300.02710.32
5.1.00.0270.03310.34
5.0.50.0130.0408.74
5.0.40.0170.0378.52
5.0.30.0130.0438.40
5.0.20.0100.0408.26
5.0.10.0100.0408.32
5.0.00.0170.0478.22
4.4.90.0100.0237.93
4.4.80.0170.0307.93
4.4.70.0070.0207.93
4.4.60.0130.0337.93
4.4.50.0130.0277.93
4.4.40.0100.0537.93
4.4.30.0130.0277.93
4.4.20.0070.0377.93
4.4.10.0170.0177.93
4.4.00.0130.0537.95
4.3.110.0100.0277.95
4.3.100.0100.0337.95
4.3.90.0100.0277.96
4.3.80.0070.0307.96
4.3.70.0100.0237.96
4.3.60.0130.0277.96
4.3.50.0100.0277.96
4.3.40.0070.0307.96
4.3.30.0070.0137.96
4.3.20.0030.0237.96
4.3.10.0070.0207.96
4.3.00.0070.0177.96

preferences:
44.65 ms | 401 KiB | 5 Q