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="USD"]'); 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.70.0120.00316.88
8.3.60.0150.00616.75
8.3.50.0050.01222.05
8.3.40.0060.01219.22
8.3.30.0130.00719.38
8.3.20.0040.00420.57
8.3.10.0040.00424.04
8.3.00.0090.00524.06
8.2.180.0140.01125.92
8.2.170.0040.01122.96
8.2.160.0000.01420.64
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00727.12
8.2.120.0120.00224.78
8.2.110.0130.00223.87
8.2.100.0120.00423.06
8.2.90.0050.00723.84
8.2.80.0050.00523.03
8.2.70.0100.00522.98
8.2.60.0060.00823.13
8.2.50.0070.00521.88
8.2.40.0070.00422.04
8.2.30.0090.00722.09
8.2.20.0060.00821.84
8.2.10.0040.00722.00
8.2.00.0060.00421.87
8.1.280.0120.00925.92
8.1.270.0040.00420.64
8.1.260.0030.00527.22
8.1.250.0070.00528.09
8.1.240.0020.00923.79
8.1.230.0070.00422.89
8.1.220.0030.00623.12
8.1.210.0020.00723.43
8.1.200.0030.00622.84
8.1.190.0070.00122.84
8.1.180.0070.00321.89
8.1.170.0090.00222.08
8.1.160.0050.00623.31
8.1.150.0060.00522.25
8.1.140.0060.00421.79
8.1.130.0100.00121.77
8.1.120.0050.00621.83
8.1.110.0060.00621.81
8.1.100.0040.00521.74
8.1.90.0070.00421.82
8.1.80.0090.00221.83
8.1.70.0030.00821.73
8.1.60.0080.00321.86
8.1.50.0090.00321.84
8.1.40.0110.00121.82
8.1.30.0090.00221.80
8.1.20.0070.00521.86
8.1.10.0060.00521.83
8.1.00.0070.00421.80
8.0.300.0030.00523.43
8.0.290.0050.00622.61
8.0.280.0100.00322.10
8.0.270.0040.00721.60
8.0.260.0060.00821.62
8.0.250.0090.00321.67
8.0.240.0100.00321.65
8.0.230.0100.00321.65
8.0.220.0080.00321.63
8.0.210.0090.00321.56
8.0.200.0070.00321.65
8.0.190.0050.00621.65
8.0.180.0080.00421.56
8.0.170.0060.00521.67
8.0.160.0080.00321.63
8.0.150.0080.00321.54
8.0.140.0090.00421.66
8.0.130.0070.00420.42
8.0.120.0060.00521.57
8.0.110.0040.00619.88
8.0.100.0070.00421.67
8.0.90.0060.00721.60
8.0.80.0100.00421.64
8.0.70.0060.00521.57
8.0.60.0110.00121.61
8.0.50.0070.00721.62
8.0.30.0080.00820.52
8.0.20.0100.00620.62
8.0.10.0050.00521.63
8.0.00.0100.00620.50
7.4.330.0040.00421.01
7.4.320.0130.00021.47
7.4.300.0090.00721.53
7.4.290.0150.00321.49
7.4.280.0080.00621.48
7.4.270.0110.00321.52
7.4.260.0110.00221.46
7.4.250.0120.00321.48
7.4.240.0050.00720.30
7.4.230.0120.00221.47
7.4.220.0130.00521.47
7.4.210.0130.00521.51
7.4.200.0170.00321.42
7.4.190.0200.00523.79
7.4.180.0200.00523.79
7.4.160.0200.00321.49
7.4.150.0160.00621.66
7.4.140.0130.01120.82
7.4.130.0180.00520.31
7.4.120.0140.00820.35
7.4.110.0190.00721.50
7.4.100.0210.00421.44
7.4.90.0150.00421.54
7.4.80.0160.00322.32
7.4.70.0150.00221.50
7.4.60.0110.00521.50
7.4.50.0060.00621.51
7.4.40.0070.00821.53
7.4.30.0150.00221.45
7.4.20.0070.00921.38
7.4.10.0130.00321.47
7.4.00.0090.00619.96
7.3.330.0070.00520.28
7.3.320.0120.00120.33
7.3.310.0140.00121.32
7.3.300.0130.00421.38
7.3.290.0170.00721.42
7.3.280.0140.00819.45
7.3.270.0200.00421.66
7.3.260.0190.00321.43
7.3.250.0170.00620.26
7.3.240.0140.00821.51
7.3.230.0160.00621.42
7.3.220.0100.00723.79
7.3.210.0120.00521.42
7.3.200.0150.00322.32
7.3.190.0120.00621.50
7.3.180.0130.00421.46
7.3.170.0100.00721.40
7.3.160.0140.00421.44
7.3.150.0140.00223.79
7.3.140.0100.00821.48
7.3.130.0130.00321.38
7.3.120.0090.00819.76
7.3.110.0110.00621.39
7.3.100.0120.00421.43
7.3.90.0080.00821.51
7.3.80.0120.00621.53
7.3.70.0120.00521.46
7.3.60.0120.00621.44
7.3.50.0100.00721.34
7.3.40.0090.00721.43
7.3.30.0120.00521.37
7.3.20.0130.00521.41
7.3.10.0100.00721.46
7.3.00.0150.00921.46
7.2.340.0160.00023.79
7.2.330.0110.00521.50
7.2.320.0110.00521.52
7.2.310.0110.00521.52
7.2.300.0110.00521.43
7.2.290.0110.00521.56
7.2.280.0110.00523.79
7.2.270.0150.00321.49
7.2.260.0130.00421.55
7.2.250.0130.00721.58
7.2.240.0150.00421.51
7.2.230.0120.00421.53
7.2.220.0120.00621.49
7.2.210.0130.00421.59
7.2.200.0120.00621.45
7.2.190.0140.00421.52
7.2.180.0130.00521.48
7.2.170.0140.00221.50
7.2.160.0050.01121.46
7.2.150.0120.00621.50
7.2.140.0140.00721.49
7.2.130.0140.00621.53
7.2.120.0140.00721.46
7.2.110.0130.00320.26
7.2.100.0100.00520.31
7.2.90.0090.01020.32
7.2.80.0100.00820.32
7.2.70.0140.00620.38
7.2.60.0120.00719.71
7.2.50.0100.00820.39
7.2.40.0130.00820.40
7.2.30.0110.00720.39
7.2.20.0120.00620.44
7.2.10.0150.00720.37
7.2.00.0090.00920.22
7.1.330.0130.00621.08
7.1.320.0160.00321.05
7.1.310.0140.00421.16
7.1.300.0120.00821.11
7.1.290.0160.00421.07
7.1.280.0130.00421.06
7.1.270.0120.00621.09
7.1.260.0200.00421.09
7.1.250.0110.00721.11
7.1.240.0160.00621.03
7.1.230.0140.00319.86
7.1.220.0150.00519.75
7.1.210.0150.00719.75
7.1.200.0110.00819.13
7.1.190.0120.00819.81
7.1.180.0140.00819.85
7.1.170.0140.00619.82
7.1.160.0180.00519.80
7.1.150.0170.00319.79
7.1.140.0130.00419.76
7.1.130.0100.00919.70
7.1.120.0090.00919.72
7.1.110.0140.00719.85
7.1.100.0120.00819.39
7.1.90.0160.00719.88
7.1.80.0100.00819.86
7.1.70.0100.00819.23
7.1.60.0160.00619.78
7.1.50.0150.00419.16
7.1.40.0110.00919.83
7.1.30.0110.00619.81
7.1.20.0120.00619.75
7.1.10.0110.00519.73
7.1.00.0080.02220.39
7.0.330.0140.00521.06
7.0.320.0180.00520.98
7.0.310.0150.00519.57
7.0.300.0150.00419.63
7.0.290.0150.00619.72
7.0.280.0140.00719.65
7.0.270.0160.00419.68
7.0.260.0140.00819.68
7.0.250.0110.00919.75
7.0.240.0150.00619.57
7.0.230.0170.00419.70
7.0.220.0180.00419.64
7.0.210.0160.00619.65
7.0.200.0110.00619.05
7.0.190.0120.00719.64
7.0.180.0120.00419.69
7.0.170.0130.00419.72
7.0.160.0080.00619.68
7.0.150.0120.01019.66
7.0.140.0130.01720.18
7.0.130.0090.00619.63
7.0.120.0130.01220.13
7.0.110.0070.01420.15
7.0.100.0070.01320.17
7.0.90.0120.01120.18
7.0.80.0100.01520.18
7.0.70.0080.01220.21
7.0.60.0100.01620.14
7.0.50.0070.01920.21
7.0.40.0100.01719.38
7.0.30.0090.02119.33
7.0.20.0080.02119.35
7.0.10.0120.01819.28
7.0.00.0070.02319.36
5.6.400.0150.00421.30
5.6.390.0110.00721.25
5.6.380.0180.00519.46
5.6.370.0130.00619.62
5.6.360.0140.00619.65
5.6.350.0110.01119.50
5.6.340.0110.00819.60
5.6.330.0110.00719.60
5.6.320.0090.00719.46
5.6.310.0120.00319.56
5.6.300.0110.00419.54
5.6.290.0060.00919.59
5.6.280.0090.00619.48
5.6.270.0070.01319.82
5.6.260.0060.01419.90
5.6.250.0080.01319.84
5.6.240.0080.01219.83
5.6.230.0100.01119.78
5.6.220.0070.02219.85
5.6.210.0090.01719.83
5.6.200.0110.02019.79
5.6.190.0100.01219.81
5.6.180.0040.01919.79
5.6.170.0080.01819.87
5.6.160.0110.01519.85
5.6.150.0090.02019.78
5.6.140.0090.02019.82
5.6.130.0040.01719.79
5.6.120.0080.02219.75
5.6.110.0080.01319.83
5.6.100.0060.01819.89
5.6.90.0110.01919.83
5.6.80.0060.01519.64
5.6.70.0070.01419.62
5.6.60.0080.01219.74
5.6.50.0060.01719.70
5.6.40.0080.01719.66
5.6.30.0080.01219.64
5.6.20.0060.02019.63
5.6.10.0060.02019.71
5.6.00.0080.02219.64
5.5.380.0090.01218.88
5.5.370.0090.02018.75
5.5.360.0090.01518.83
5.5.350.0090.01318.89
5.5.340.0090.01518.89
5.5.330.0080.01918.92
5.5.320.0130.01619.05
5.5.310.0090.02018.91
5.5.300.0110.01318.93
5.5.290.0050.02218.97
5.5.280.0110.01318.92
5.5.270.0080.01618.89
5.5.260.0090.01318.95
5.5.250.0080.01318.88
5.5.240.0080.01418.83
5.5.230.0070.01118.72
5.5.220.0070.01218.85
5.5.210.0070.01518.79
5.5.200.0050.01718.73
5.5.190.0060.01518.82
5.5.180.0100.01818.77
5.5.170.0070.00819.46
5.5.160.0080.01618.81
5.5.150.0090.01318.75
5.5.140.0070.01218.77
5.5.130.0070.02018.79
5.5.120.0070.01918.84
5.5.110.0100.01718.81
5.5.100.0090.01418.76
5.5.90.0130.01718.81
5.5.80.0100.01318.73
5.5.70.0090.01318.82
5.5.60.0080.01718.79
5.5.50.0130.00818.71
5.5.40.0090.02018.70
5.5.30.0120.01318.82
5.5.20.0060.01718.74
5.5.10.0080.01918.80
5.5.00.0070.02118.73
5.4.450.0080.02418.56
5.4.440.0080.01718.55
5.4.430.0090.01318.54
5.4.420.0090.02218.56
5.4.410.0070.01918.50
5.4.400.0070.01518.44
5.4.390.0060.01218.46
5.4.380.0080.01018.43
5.4.370.0050.01118.39
5.4.360.0060.01818.47
5.4.350.0030.01418.43
5.4.340.0060.01618.44
5.4.330.0080.00518.29
5.4.320.0060.01418.43
5.4.310.0080.01818.51
5.4.300.0060.01818.47
5.4.290.0060.01318.50
5.4.280.0060.02018.43
5.4.270.0060.01818.47
5.4.260.0070.01318.48
5.4.250.0090.01718.47
5.4.240.0080.01118.47
5.4.230.0050.01318.54
5.4.220.0070.01018.42
5.4.210.0090.01618.49
5.4.200.0070.01318.54
5.4.190.0060.02018.44
5.4.180.0090.01318.50
5.4.170.0080.00918.44
5.4.160.0080.01018.48
5.4.150.0090.01218.54
5.4.140.0080.01317.91
5.4.130.0070.00917.95
5.4.120.0080.01417.91
5.4.110.0100.01417.92
5.4.100.0090.01217.96
5.4.90.0090.01317.96
5.4.80.0080.01217.92
5.4.70.0120.01417.95
5.4.60.0120.01517.97
5.4.50.0100.01517.98
5.4.40.0080.01217.97
5.4.30.0050.01917.93
5.4.20.0070.01417.95
5.4.10.0050.02517.97
5.4.00.0070.01717.85
5.3.290.0070.02117.68
5.3.280.0080.01217.66
5.3.270.0050.02517.63
5.3.260.0070.01717.74
5.3.250.0060.01517.67
5.3.240.0060.01417.68
5.3.230.0060.01617.72
5.3.220.0070.01517.67
5.3.210.0060.01717.65
5.3.200.0070.01317.65
5.3.190.0070.01717.70
5.3.180.0050.01417.68
5.3.170.0070.01617.69
5.3.160.0090.01217.68
5.3.150.0080.01717.68
5.3.140.0080.01417.62
5.3.130.0070.01717.71
5.3.120.0070.01817.68
5.3.110.0080.01117.61
5.3.100.0070.01917.59
5.3.90.0080.01617.57
5.3.80.0070.01717.54
5.3.70.0060.01717.50
5.3.60.0070.01017.55
5.3.50.0060.01817.50
5.3.40.0040.01817.52
5.3.30.0110.01317.54
5.3.20.0050.01317.50
5.3.10.0060.01717.46
5.3.00.0060.01817.44

preferences:
41.72 ms | 401 KiB | 5 Q