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="GBF"]'); 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.0070.01418.80
8.3.50.0020.01422.23
8.3.40.0140.00319.22
8.3.30.0100.00720.73
8.3.20.0030.00519.10
8.3.10.0050.00319.63
8.3.00.0030.00620.04
8.2.180.0110.01117.13
8.2.170.0070.00722.96
8.2.160.0000.01420.72
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0020.00520.46
8.2.110.0100.01022.77
8.2.100.0040.00818.16
8.2.90.0000.00818.00
8.2.80.0030.00618.94
8.2.70.0000.00818.18
8.2.60.0030.00517.88
8.2.50.0070.00417.84
8.2.40.0050.00320.31
8.2.30.0030.00319.76
8.2.20.0080.00017.91
8.2.10.0000.00818.14
8.2.00.0090.00018.11
8.1.280.0080.00825.92
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00924.13
8.1.230.0110.00019.54
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0000.00817.61
8.1.190.0030.00517.61
8.1.180.0000.00818.10
8.1.170.0000.00819.03
8.1.160.0040.00419.33
8.1.150.0030.00518.93
8.1.140.0050.00217.85
8.1.130.0030.00318.27
8.1.120.0000.00817.89
8.1.110.0060.00317.74
8.1.100.0040.00417.93
8.1.90.0000.00717.68
8.1.80.0000.00717.89
8.1.70.0030.00317.79
8.1.60.0000.00917.98
8.1.50.0080.00017.66
8.1.40.0040.00417.68
8.1.30.0000.00818.04
8.1.20.0000.00818.04
8.1.10.0050.00217.71
8.1.00.0040.00417.69
8.0.300.0090.00018.77
8.0.290.0060.00317.13
8.0.280.0000.00718.80
8.0.270.0040.00417.63
8.0.260.0030.00317.15
8.0.250.0000.00717.21
8.0.240.0050.00317.20
8.0.230.0000.00717.20
8.0.220.0030.00317.34
8.0.210.0000.00717.29
8.0.200.0050.00217.38
8.0.190.0030.00517.18
8.0.180.0040.00417.14
8.0.170.0020.00517.34
8.0.160.0030.00517.18
8.0.150.0030.00517.29
8.0.140.0000.00717.10
8.0.130.0000.00913.65
8.0.120.0040.00417.25
8.0.110.0040.00417.36
8.0.100.0000.00717.30
8.0.90.0040.00417.27
8.0.80.0120.00317.29
8.0.70.0030.00617.26
8.0.60.0000.00717.30
8.0.50.0050.00317.21
8.0.30.0080.01017.43
8.0.20.0050.01817.48
8.0.10.0050.00317.46
8.0.00.0090.00917.17
7.4.330.0000.00517.07
7.4.320.0000.00716.86
7.4.300.0060.00017.00
7.4.290.0040.00417.01
7.4.280.0070.00016.79
7.4.270.0030.00316.91
7.4.260.0030.00313.64
7.4.250.0070.00016.85
7.4.240.0040.00416.85
7.4.230.0030.00316.88
7.4.220.0030.01517.01
7.4.210.0080.00716.90
7.4.200.0000.00716.77
7.4.190.0030.00516.94
7.4.160.0040.01316.78
7.4.150.0100.00717.40
7.4.140.0100.00917.86
7.4.130.0080.01017.04
7.4.120.0090.01316.90
7.4.110.0070.01717.00
7.4.100.0100.00716.87
7.4.90.0140.00417.04
7.4.80.0040.01419.39
7.4.70.0150.00916.89
7.4.60.0100.00716.86
7.4.50.0030.00616.80
7.4.40.0100.00322.77
7.4.30.0070.01416.91
7.4.00.0030.01015.18
7.3.330.0050.00013.53
7.3.320.0000.00613.48
7.3.310.0000.00716.55
7.3.300.0000.00716.63
7.3.290.0130.00416.69
7.3.280.0090.00816.58
7.3.270.0070.01017.40
7.3.260.0120.00818.24
7.3.250.0110.00716.74
7.3.240.0060.00916.71
7.3.230.0070.01016.85
7.3.210.0070.01016.64
7.3.200.0100.01319.39
7.3.190.0110.00716.79
7.3.180.0080.00816.71
7.3.170.0080.00816.96
7.3.160.0060.00916.62
7.3.120.0130.00614.96
7.3.10.0080.00316.63
7.3.00.0040.00416.54
7.2.330.0170.00916.89
7.2.320.0060.01217.07
7.2.310.0120.00916.91
7.2.300.0080.00916.75
7.2.290.0100.00616.83
7.2.130.0060.00617.05
7.2.120.0060.00616.98
7.2.110.0070.00417.07
7.2.100.0030.00717.08
7.2.90.0080.00016.94
7.2.80.0090.00617.04
7.2.70.0030.01017.05
7.2.60.0030.01417.20
7.2.50.0060.00616.97
7.2.40.0090.00316.91
7.2.30.0120.00417.10
7.2.20.0000.01516.95
7.2.10.0040.01217.19
7.2.00.0080.00618.43
7.1.250.0050.00516.01
7.1.100.0030.00618.38
7.1.70.0000.00717.19
7.1.60.0130.01019.24
7.1.50.0160.01016.68
7.1.00.0030.03322.49
7.0.200.0000.01016.94
7.0.140.0100.07022.16
7.0.100.0000.04720.12
7.0.90.0070.04320.09
7.0.80.0070.07320.02
7.0.70.0070.06720.12
7.0.60.0070.06720.23
7.0.50.0170.06020.38
7.0.40.0130.03320.32
7.0.30.0170.07320.21
7.0.20.0030.08720.31
7.0.10.0070.08020.34
7.0.00.0070.08020.11
5.6.280.0030.07021.19
5.6.250.0000.05020.74
5.6.240.0070.06320.71
5.6.230.0100.06020.77
5.6.220.0030.04020.95
5.6.210.0070.06320.96
5.6.200.0170.06321.14
5.6.190.0030.05021.33
5.6.180.0100.07321.17
5.6.170.0130.06021.33
5.6.160.0000.04721.35
5.6.150.0100.07721.20
5.6.140.0170.07321.23
5.6.130.0030.04321.35
5.6.120.0070.04321.33
5.6.110.0000.04721.16
5.6.100.0000.04721.12
5.6.90.0030.05721.20
5.6.80.0170.06720.64
5.6.70.0030.08020.68
5.6.60.0030.04020.57
5.6.50.0000.08020.61
5.6.40.0100.07320.50
5.6.30.0070.07020.56
5.6.20.0030.04020.58
5.6.10.0030.04020.70
5.6.00.0130.05320.54
5.5.380.0100.07020.66
5.5.370.0070.03720.67
5.5.360.0000.05020.59
5.5.350.0030.08020.62
5.5.340.0030.06321.01
5.5.330.0100.08020.95
5.5.320.0030.08020.91
5.5.310.0130.06020.92
5.5.300.0070.04721.00
5.5.290.0130.07720.91
5.5.280.0130.05321.00
5.5.270.0130.07321.01
5.5.260.0000.09021.04
5.5.250.0070.08320.90
5.5.240.0070.08020.45
5.5.230.0030.08320.29
5.5.220.0100.07320.31
5.5.210.0100.07020.39
5.5.200.0070.04720.35
5.5.190.0000.08320.30
5.5.180.0100.04320.36
5.5.160.0170.07020.29
5.5.150.0070.03720.43
5.5.140.0070.07020.43
5.5.130.0070.04720.36
5.5.120.0100.04020.32
5.5.110.0000.05720.16
5.5.100.0130.06720.33
5.5.90.0070.06320.32
5.5.80.0200.02720.21
5.5.70.0030.08320.18
5.5.60.0130.06320.23
5.5.50.0130.07020.20
5.5.40.0000.08020.15
5.5.30.0030.07320.21
5.5.20.0070.07320.34
5.5.10.0000.04320.14
5.5.00.0000.05320.21
5.4.450.0070.04019.74
5.4.440.0000.06019.57
5.4.430.0030.08719.56
5.4.420.0170.05019.55
5.4.410.0070.06319.46
5.4.400.0100.07019.03
5.4.390.0130.07019.20
5.4.380.0170.06019.32
5.4.370.0130.07319.27
5.4.360.0030.05319.27
5.4.350.0070.06719.23
5.4.340.0100.04019.18
5.4.320.0100.06019.31
5.4.310.0070.06319.18
5.4.300.0100.03319.24
5.4.290.0030.07719.26
5.4.280.0170.07019.24
5.4.270.0100.06319.25
5.4.260.0130.02718.99
5.4.250.0070.04319.23
5.4.240.0030.06319.29
5.4.230.0130.06718.98
5.4.220.0070.07319.24
5.4.210.0130.06319.11
5.4.200.0000.04719.02
5.4.190.0070.07719.24
5.4.180.0030.07319.26
5.4.170.0100.03319.08
5.4.160.0070.07019.25
5.4.150.0070.03719.27
5.4.140.0000.08016.41
5.4.130.0070.07316.39
5.4.120.0070.04316.47
5.4.110.0070.08016.54
5.4.100.0130.04316.47
5.4.90.0100.07016.53
5.4.80.0070.04016.39
5.4.70.0030.03316.55
5.4.60.0070.06316.49
5.4.50.0130.02716.43
5.4.40.0070.03316.68
5.4.30.0030.03716.43
5.4.20.0070.03316.51
5.4.10.0070.03316.48
5.4.00.0070.03315.96
5.3.290.0070.07714.82
5.3.280.0070.03714.79
5.3.270.0030.04014.64
5.3.260.0100.07014.80
5.3.250.0100.06714.79
5.3.240.0030.06314.63
5.3.230.0100.06314.80
5.3.220.0030.07714.77
5.3.210.0030.07714.77
5.3.200.0030.06014.68
5.3.190.0100.06014.70
5.3.180.0070.07714.56
5.3.170.0030.03714.75
5.3.160.0030.04014.70
5.3.150.0000.04014.67
5.3.140.0070.03314.66
5.3.130.0070.07314.66
5.3.120.0000.04314.62
5.3.110.0000.04014.69
5.3.100.0030.03714.18
5.3.90.0030.03714.17
5.3.80.0000.04014.19
5.3.70.0170.02314.09
5.3.60.0030.03714.18
5.3.50.0100.03013.95
5.3.40.0070.03014.16
5.3.30.0030.03013.93
5.3.20.0030.03713.84
5.3.10.0030.03013.79
5.3.00.0070.02713.79
5.2.170.0030.03313.12
5.2.160.0070.02313.12
5.2.150.0000.03313.12
5.2.140.0070.02713.12
5.2.130.0030.02713.12
5.2.120.0030.02713.12
5.2.110.0030.02713.12
5.2.100.0070.02713.12
5.2.90.0000.02713.12
5.2.80.0070.02313.12
5.2.70.0030.02713.12
5.2.60.0000.03013.12
5.2.50.0030.02713.12
5.2.40.0100.02313.12
5.2.30.0000.03013.12
5.2.20.0030.02013.12
5.2.10.0030.02313.12
5.2.00.0030.03013.12
5.1.60.0000.02713.12
5.1.50.0000.02713.12
5.1.40.0030.02313.12
5.1.30.0000.02713.12
5.1.20.0100.02313.12
5.1.10.0000.02713.12
5.1.00.0000.02313.12
5.0.50.0000.02013.12
5.0.40.0030.01713.12
5.0.30.0070.02313.12
5.0.20.0030.01713.12
5.0.10.0000.02013.12
5.0.00.0000.02713.12
4.4.90.0000.01713.12
4.4.80.0030.01013.12
4.4.70.0000.01713.12
4.4.60.0000.01313.12
4.4.50.0000.01313.12
4.4.40.0000.02013.12
4.4.30.0030.01313.12
4.4.20.0030.01013.12
4.4.10.0000.01313.12
4.4.00.0000.02313.12
4.3.110.0030.01313.12
4.3.100.0030.01013.12
4.3.90.0000.01313.12
4.3.80.0000.02013.12
4.3.70.0000.01313.12
4.3.60.0000.01313.12
4.3.50.0000.01313.12
4.3.40.0030.01713.12
4.3.30.0000.01313.12
4.3.20.0000.01313.12
4.3.10.0000.01313.12
4.3.00.0000.01313.12

preferences:
50.67 ms | 401 KiB | 5 Q