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'); 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.0140.00718.55
8.3.50.0100.01022.30
8.3.40.0120.00319.04
8.3.30.0120.00620.58
8.3.20.0050.00319.15
8.3.10.0040.00419.45
8.3.00.0040.00420.04
8.2.180.0160.00618.89
8.2.170.0150.00022.96
8.2.160.0070.00721.50
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00020.27
8.2.110.0040.00719.68
8.2.100.0090.00318.09
8.2.90.0000.00819.42
8.2.80.0000.00819.63
8.2.70.0040.00417.75
8.2.60.0030.00518.30
8.2.50.0000.01018.07
8.2.40.0030.00618.53
8.2.30.0040.00419.91
8.2.20.0000.00718.05
8.2.10.0040.00418.09
8.2.00.0060.00318.04
8.1.280.0100.01025.92
8.1.270.0090.00023.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0080.00420.92
8.1.230.0110.00021.29
8.1.220.0080.00018.77
8.1.210.0030.00619.14
8.1.200.0040.00417.50
8.1.190.0000.00817.78
8.1.180.0030.00618.10
8.1.170.0090.00018.96
8.1.160.0030.00519.12
8.1.150.0000.00818.96
8.1.140.0040.00417.80
8.1.130.0050.00218.23
8.1.120.0000.00717.86
8.1.110.0000.00817.63
8.1.100.0060.00317.62
8.1.90.0030.00617.86
8.1.80.0030.00517.64
8.1.70.0030.00317.63
8.1.60.0030.00617.76
8.1.50.0000.00917.88
8.1.40.0040.00417.95
8.1.30.0040.00417.96
8.1.20.0050.00318.07
8.1.10.0080.00017.68
8.1.00.0030.00617.84
8.0.300.0040.00420.46
8.0.290.0000.00717.55
8.0.280.0000.00718.76
8.0.270.0000.00717.66
8.0.260.0030.00317.17
8.0.250.0040.00417.21
8.0.240.0050.00317.18
8.0.230.0030.00317.31
8.0.220.0070.00017.34
8.0.210.0040.00417.20
8.0.200.0000.00717.23
8.0.190.0040.00417.39
8.0.180.0040.00417.21
8.0.170.0040.00417.10
8.0.160.0030.00517.22
8.0.150.0050.00217.28
8.0.140.0000.00817.38
8.0.130.0000.00713.68
8.0.120.0080.00017.29
8.0.110.0040.00417.17
8.0.100.0070.00017.14
8.0.90.0040.00417.35
8.0.80.0130.01017.29
8.0.70.0060.00317.18
8.0.60.0000.00717.10
8.0.50.0040.00417.11
8.0.30.0120.00917.35
8.0.20.0080.01217.46
8.0.10.0070.00017.37
8.0.00.0180.00317.02
7.4.330.0000.00617.10
7.4.320.0000.00716.84
7.4.300.0030.00316.96
7.4.290.0000.00716.86
7.4.280.0000.00816.81
7.4.270.0030.00516.91
7.4.260.0000.00613.64
7.4.250.0040.00416.75
7.4.240.0040.00416.89
7.4.230.0050.00216.99
7.4.220.0070.01416.94
7.4.210.0060.01116.88
7.4.200.0000.00716.63
7.4.190.0000.00716.92
7.4.160.0100.01316.88
7.4.150.0310.03417.40
7.4.140.0080.01217.86
7.4.130.0110.00816.82
7.4.120.0100.01016.70
7.4.110.0130.00716.84
7.4.100.0040.01416.89
7.4.90.0160.00316.93
7.4.80.0100.01019.39
7.4.70.0160.00616.73
7.4.60.0030.01416.98
7.4.50.0060.00316.85
7.4.40.0040.01522.77
7.4.30.0080.01616.79
7.4.00.0030.01115.02
7.3.330.0050.00013.25
7.3.320.0000.00513.41
7.3.310.0000.00816.60
7.3.300.0070.00016.65
7.3.290.0060.00816.57
7.3.280.0070.00916.60
7.3.270.0070.01017.40
7.3.260.0070.01618.24
7.3.250.0140.00716.67
7.3.240.0130.00516.63
7.3.230.0130.00716.46
7.3.210.0130.00617.04
7.3.200.0100.01019.39
7.3.190.0110.00816.77
7.3.180.0090.00916.89
7.3.170.0100.00716.96
7.3.160.0090.01416.71
7.3.120.0090.00814.79
7.3.110.0070.00914.83
7.3.100.0090.00914.91
7.3.90.0070.01114.93
7.3.80.0070.00714.95
7.3.70.0030.00914.91
7.3.60.0090.00614.57
7.3.50.0090.00014.75
7.3.40.0110.00514.68
7.3.30.0060.01314.69
7.3.20.0050.00516.75
7.3.10.0110.00316.82
7.3.00.0120.00316.73
7.2.330.0150.01416.91
7.2.320.0120.00616.91
7.2.310.0180.00916.81
7.2.300.0140.00616.88
7.2.290.0120.00916.86
7.2.250.0060.01315.17
7.2.240.0100.01015.21
7.2.230.0040.00714.93
7.2.220.0040.00814.84
7.2.210.0110.00715.00
7.2.200.0030.01014.91
7.2.190.0130.00314.96
7.2.180.0070.00414.98
7.2.170.0090.00615.02
7.2.00.0210.01018.93
7.1.330.0120.00015.85
7.1.320.0120.00415.71
7.1.310.0000.01615.97
7.1.300.0030.00715.97
7.1.290.0040.00815.68
7.1.280.0040.01115.82
7.1.270.0080.00415.74
7.1.260.0080.00815.95
7.1.100.0040.00818.09
7.1.70.0030.00517.22
7.1.60.0170.00719.24
7.1.50.0060.00616.98
7.1.00.0030.03322.61
7.0.200.0000.00816.75
7.0.140.0030.07722.23
7.0.100.0070.05322.09
7.0.90.0100.08321.87
7.0.80.0100.04721.87
7.0.70.0000.05321.89
7.0.60.0000.08021.87
7.0.50.0030.06722.21
7.0.40.0070.06320.30
7.0.30.0100.06720.24
7.0.20.0070.04020.17
7.0.10.0030.06020.30
7.0.00.0100.08320.25
5.6.280.0070.07021.03
5.6.250.0000.06020.86
5.6.240.0100.05720.87
5.6.230.0130.08020.68
5.6.220.0030.06720.84
5.6.210.0070.08020.92
5.6.200.0100.08321.23
5.6.190.0130.08021.22
5.6.180.0170.06721.22
5.6.170.0000.08321.13
5.6.160.0130.03721.20
5.6.150.0030.07321.22
5.6.140.0030.06721.19
5.6.130.0070.09021.19
5.6.120.0100.06321.19
5.6.110.0170.07021.30
5.6.100.0200.08321.13
5.6.90.0100.04321.07
5.6.80.0070.04020.58
5.6.70.0070.04020.57
5.6.60.0030.04020.51
5.6.50.0030.04020.72
5.6.40.0100.03320.43
5.6.30.0030.03720.48
5.6.20.0030.04020.68
5.6.10.0130.03020.58
5.6.00.0070.03720.48
5.5.380.0030.08320.54
5.5.370.0100.06720.54
5.5.360.0100.05320.55
5.5.350.0100.05020.57
5.5.340.0070.04720.93
5.5.330.0070.08320.92
5.5.320.0030.08321.00
5.5.310.0070.04020.91
5.5.300.0030.04720.91
5.5.290.0100.07720.97
5.5.280.0100.08320.97
5.5.270.0130.07721.07
5.5.260.0170.04320.87
5.5.250.0070.06320.72
5.5.240.0070.04320.41
5.5.230.0070.03720.33
5.5.220.0070.03720.46
5.5.210.0070.03720.32
5.5.200.0070.03720.37
5.5.190.0070.06320.40
5.5.180.0100.07020.26
5.5.160.0030.04020.43
5.5.150.0130.04020.36
5.5.140.0100.07020.42
5.5.130.0070.03720.41
5.5.120.0030.03720.23
5.5.110.0000.04320.41
5.5.100.0030.03320.16
5.5.90.0070.03320.32
5.5.80.0030.03720.27
5.5.70.0000.04320.27
5.5.60.0000.04320.14
5.5.50.0000.03320.23
5.5.40.0000.05020.32
5.5.30.0030.03720.18
5.5.20.0030.04020.30
5.5.10.0030.04020.29
5.5.00.0070.03720.18
5.4.450.0100.07719.34
5.4.440.0100.07019.32
5.4.430.0030.08719.57
5.4.420.0000.07319.32
5.4.410.0100.07319.47
5.4.400.0070.04319.24
5.4.390.0030.04319.27
5.4.380.0170.02719.18
5.4.370.0030.03719.29
5.4.360.0070.03319.19
5.4.350.0000.04019.15
5.4.340.0030.03319.29
5.4.320.0000.04719.29
5.4.310.0030.04019.29
5.4.300.0000.03719.33
5.4.290.0030.03319.17
5.4.280.0000.04019.19
5.4.270.0070.02719.29
5.4.260.0000.03719.44
5.4.250.0030.03719.24
5.4.240.0030.03719.17
5.4.230.0000.04019.24
5.4.220.0000.03319.32
5.4.210.0030.04019.28
5.4.200.0030.04019.24
5.4.190.0030.03319.26
5.4.180.0000.04019.03
5.4.170.0030.03719.01
5.4.160.0070.03319.42
5.4.150.0030.04319.22
5.4.140.0070.03316.39
5.4.130.0100.02716.61
5.4.120.0070.03316.61
5.4.110.0000.04316.53
5.4.100.0030.03716.66
5.4.90.0000.03716.62
5.4.80.0030.05016.51
5.4.70.0030.05016.54
5.4.60.0070.06316.47
5.4.50.0170.02716.48
5.4.40.0030.05016.52
5.4.30.0070.06316.51
5.4.20.0100.07016.58
5.4.10.0100.06316.48
5.4.00.0070.06715.99
5.3.290.0130.04014.68
5.3.280.0000.04014.74
5.3.270.0000.04014.74
5.3.260.0030.04014.74
5.3.250.0030.03714.78
5.3.240.0000.04014.75
5.3.230.0000.04314.67
5.3.220.0030.03714.67
5.3.210.0000.03714.77
5.3.200.0000.04014.71
5.3.190.0070.03314.79
5.3.180.0000.08014.78
5.3.170.0070.05714.70
5.3.160.0070.04314.71
5.3.150.0000.05014.75
5.3.140.0130.05314.71
5.3.130.0030.08714.56
5.3.120.0030.06314.69
5.3.110.0030.05014.72
5.3.100.0030.07714.16
5.3.90.0100.07014.19
5.3.80.0000.07714.08
5.3.70.0100.05714.21
5.3.60.0070.04013.97
5.3.50.0030.04314.02
5.3.40.0100.05714.15
5.3.30.0070.06713.88
5.3.20.0100.07013.87
5.3.10.0070.07313.80
5.3.00.0030.08313.88
5.2.170.0000.03711.29
5.2.160.0000.06711.30
5.2.150.0000.04311.21
5.2.140.0070.05011.29
5.2.130.0100.05011.17
5.2.120.0000.04711.37
5.2.110.0000.03311.36
5.2.100.0130.04011.33
5.2.90.0100.03311.20
5.2.80.0000.06311.35
5.2.70.0070.05711.27
5.2.60.0000.06311.28
5.2.50.0100.03311.09
5.2.40.0000.05311.17
5.2.30.0070.05011.23
5.2.20.0000.06311.05
5.2.10.0030.06011.14
5.2.00.0000.03010.99
5.1.60.0030.05310.24
5.1.50.0070.05710.30
5.1.40.0000.05710.24
5.1.30.0030.05310.54
5.1.20.0030.04310.66
5.1.10.0000.05710.24
5.1.00.0000.04710.24
5.0.50.0030.0309.64
5.0.40.0070.0409.64
5.0.30.0000.0409.64
5.0.20.0000.0379.64
5.0.10.0000.0309.64
5.0.00.0000.0579.64
4.4.90.0030.0279.64
4.4.80.0000.0139.64
4.4.70.0000.0279.64
4.4.60.0030.0279.64
4.4.50.0000.0309.64
4.4.40.0000.0239.64
4.4.30.0000.0379.64
4.4.20.0030.0309.64
4.4.10.0030.0179.64
4.4.00.0000.0409.64
4.3.110.0030.0309.64
4.3.100.0030.0339.64
4.3.90.0030.0209.64
4.3.80.0000.0479.64
4.3.70.0000.0339.64
4.3.60.0000.0309.64
4.3.50.0000.0279.64
4.3.40.0070.0509.64
4.3.30.0000.0339.64
4.3.20.0000.0379.64
4.3.10.0000.0279.64
4.3.00.0030.0309.64

preferences:
35.65 ms | 400 KiB | 5 Q