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'); echo $tak; $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.00918.80
8.3.50.0130.00421.21
8.3.40.0070.00719.13
8.3.30.0150.00319.39
8.3.20.0040.00420.47
8.3.10.0080.00022.47
8.3.00.0040.00422.70
8.2.180.0180.00417.00
8.2.170.0090.00622.96
8.2.160.0120.00319.49
8.2.150.0060.00924.18
8.2.140.0130.00724.66
8.2.130.0040.01426.16
8.2.120.0040.00419.79
8.2.110.0090.00022.33
8.2.100.0080.00419.52
8.2.90.0040.00419.48
8.2.80.0040.00418.12
8.2.70.0060.00317.75
8.2.60.0080.00018.17
8.2.50.0050.00318.07
8.2.40.0060.00318.47
8.2.30.0000.00818.28
8.2.20.0000.00817.92
8.2.10.0040.00417.95
8.2.00.0000.00918.08
8.1.280.0110.00425.92
8.1.270.0060.00320.32
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0030.00624.23
8.1.230.0070.00319.24
8.1.220.0060.00317.79
8.1.210.0060.00318.77
8.1.200.0060.00617.60
8.1.190.0000.00817.65
8.1.180.0050.00320.73
8.1.170.0000.00818.69
8.1.160.0040.00422.34
8.1.150.0000.00718.70
8.1.140.0040.00417.60
8.1.130.0000.00718.03
8.1.120.0070.00017.54
8.1.110.0030.00617.51
8.1.100.0000.00717.51
8.1.90.0000.00717.55
8.1.80.0050.00317.51
8.1.70.0070.00017.50
8.1.60.0030.00517.55
8.1.50.0040.00417.73
8.1.40.0040.00417.64
8.1.30.0030.00617.67
8.1.20.0040.00417.63
8.1.10.0040.00417.68
8.1.00.0050.00317.71
8.0.300.0070.00018.77
8.0.290.0040.00417.18
8.0.280.0000.00818.70
8.0.270.0040.00417.46
8.0.260.0100.00017.14
8.0.250.0030.00317.25
8.0.240.0060.00317.20
8.0.230.0000.00717.04
8.0.220.0080.00017.20
8.0.210.0000.00716.99
8.0.200.0030.00617.25
8.0.190.0000.00717.13
8.0.180.0070.00017.00
8.0.170.0040.00417.21
8.0.160.0050.00317.06
8.0.150.0000.00717.01
8.0.140.0000.00717.04
8.0.130.0000.00513.66
8.0.120.0000.00817.30
8.0.110.0040.00417.11
8.0.100.0040.00417.28
8.0.90.0040.00417.27
8.0.80.0090.00617.19
8.0.70.0030.00517.08
8.0.60.0080.00017.12
8.0.50.0040.00417.08
8.0.30.0140.00817.16
8.0.20.0120.00717.54
8.0.10.0040.00417.32
8.0.00.0100.01316.87
7.4.330.0000.00615.00
7.4.320.0050.00216.57
7.4.300.0050.00216.65
7.4.290.0050.00316.75
7.4.280.0060.00316.68
7.4.270.0040.00416.79
7.4.260.0000.00816.68
7.4.250.0040.00416.68
7.4.240.0050.00216.82
7.4.230.0070.00016.77
7.4.220.0090.00616.66
7.4.210.0080.00716.83
7.4.200.0000.00716.64
7.4.190.0000.00716.61
7.4.160.0140.00317.06
7.4.150.0130.00717.40
7.4.140.0170.00517.86
7.4.130.0180.00316.70
7.4.120.0140.00416.83
7.4.110.0090.01716.68
7.4.100.0070.01116.80
7.4.90.0070.01116.77
7.4.80.0070.01019.39
7.4.70.0170.00016.73
7.4.60.0180.00016.72
7.4.50.0060.00316.64
7.4.40.0040.01122.77
7.4.30.0140.00416.89
7.4.00.0100.00715.14
7.3.330.0000.00513.45
7.3.320.0030.00313.64
7.3.310.0000.00816.77
7.3.300.0000.00716.55
7.3.290.0110.00416.68
7.3.280.0100.00616.61
7.3.270.0100.00717.40
7.3.260.0170.01816.50
7.3.250.0100.00716.70
7.3.240.0090.00916.73
7.3.230.0170.00816.72
7.3.210.0120.00616.78
7.3.200.0120.00919.39
7.3.190.0030.01516.66
7.3.180.0060.01116.54
7.3.170.0060.01016.59
7.3.160.0030.01516.70
7.3.120.0080.01015.16
7.3.110.0090.00615.27
7.3.100.0120.00615.23
7.3.90.0120.00415.14
7.3.80.0070.00714.92
7.3.70.0150.00314.96
7.3.60.0130.00315.01
7.3.50.0060.00615.22
7.3.40.0070.00314.95
7.3.30.0060.01015.10
7.3.20.0000.01417.08
7.3.10.0090.00516.86
7.3.00.0060.00616.77
7.2.330.0040.01617.09
7.2.320.0130.00916.79
7.2.310.0100.00716.70
7.2.300.0100.01317.04
7.2.290.0130.00316.87
7.2.250.0040.01515.46
7.2.240.0100.01015.12
7.2.230.0070.00715.09
7.2.220.0030.01315.41
7.2.210.0120.00315.11
7.2.200.0080.00415.04
7.2.190.0060.01215.09
7.2.180.0110.00415.15
7.2.170.0090.00915.36
7.2.130.0030.00917.02
7.2.120.0030.00817.08
7.2.110.0070.00416.99
7.2.100.0060.00617.18
7.2.90.0070.00417.03
7.2.80.0030.00717.08
7.2.70.0070.00717.13
7.2.60.0050.00916.96
7.2.50.0060.00617.05
7.2.40.0060.00916.89
7.2.30.0070.00416.97
7.2.20.0030.00616.96
7.2.10.0040.01116.89
7.2.00.0060.00418.21
7.1.330.0070.00715.99
7.1.320.0030.01216.27
7.1.310.0120.00615.92
7.1.300.0030.00615.97
7.1.290.0030.01116.07
7.1.280.0070.01015.94
7.1.270.0070.01015.88
7.1.260.0000.01416.00
7.1.250.0060.00916.07
7.1.200.0000.01415.99
7.1.100.0300.00918.53
7.1.70.0000.00717.54
7.1.60.0000.02519.82
7.1.50.0120.00617.18
7.1.00.0000.08022.74
7.0.200.0050.00517.08
7.0.140.0070.07022.34
7.0.60.0070.04320.29
7.0.50.0030.06718.24
7.0.40.0070.04320.46
7.0.30.0330.04720.50
7.0.20.0230.07020.54
7.0.10.0300.06720.49
7.0.00.0100.04320.59
5.6.280.0070.07321.41
5.6.210.0070.06020.75
5.6.200.0030.05018.55
5.6.190.0030.06721.03
5.6.180.0330.04721.06
5.6.170.0270.03720.90
5.6.160.0100.08020.91
5.6.150.0070.05718.72
5.6.140.0100.03318.60
5.6.130.0000.04318.41
5.6.120.0100.08321.25
5.6.110.0070.08321.24
5.6.100.0230.03321.32
5.6.90.0100.07021.40
5.6.80.0130.06720.81
5.6.70.0270.08020.63
5.5.350.0270.07020.80
5.5.340.0130.08018.32
5.5.330.0170.05020.94
5.5.320.0230.07320.88
5.5.310.0270.07320.65
5.5.300.0100.03318.36
5.5.290.0000.07718.43
5.5.280.0030.08321.30
5.5.270.0070.07721.05
5.5.260.0100.08021.05
5.5.250.0100.06721.07
5.5.240.0100.08020.37
5.4.450.0300.05319.71
5.4.440.1000.06319.62
5.4.430.0770.06019.69
5.4.420.1030.07719.75
5.4.410.0100.08019.28
5.4.400.0230.06019.08
5.4.390.0430.05719.01
5.4.380.0230.05718.72
5.4.370.0030.06018.89
5.4.360.0200.04318.74
5.4.350.0090.04012.21
5.4.340.0060.04812.20
5.4.320.0060.04412.69
5.4.310.0060.03712.69
5.4.300.0060.03512.69
5.4.290.0110.04212.69
5.4.280.0050.03712.59
5.4.270.0090.04712.58
5.4.260.0100.04212.59
5.4.250.0070.05719.00
5.4.240.0030.06719.22
5.4.230.0070.05719.15
5.4.220.0170.05318.87
5.4.210.0130.05319.15
5.4.200.0070.05319.21
5.4.190.0030.08319.26
5.4.180.0070.06319.18
5.4.170.0100.05319.16
5.4.160.0170.05319.08
5.4.150.0070.06719.02
5.4.140.0100.06716.67
5.4.130.0000.05716.76
5.4.120.0070.05016.74
5.4.110.0070.06016.69
5.4.100.0100.05016.83
5.4.90.0030.05716.86
5.4.80.0030.05016.80
5.4.70.0100.05316.70
5.4.60.0030.05716.74
5.4.50.0070.05716.78
5.4.40.0070.05716.75
5.4.30.0000.06016.73
5.4.20.0070.06716.63
5.4.10.0000.06316.77
5.4.00.0030.05716.25
5.3.290.0080.04812.89
5.3.280.0070.05014.77
5.3.270.0130.07314.93
5.3.260.0070.07014.79
5.3.250.0130.05014.86
5.3.240.0170.04314.68
5.3.230.0130.04314.82
5.3.220.0100.05014.65
5.3.210.0070.05314.82
5.3.200.0070.06714.72
5.3.190.0070.05314.75
5.3.180.0000.06014.75
5.3.170.0100.04314.73
5.3.160.0030.07714.63
5.3.150.0170.04314.77
5.3.140.0100.05314.74
5.3.130.0100.07314.86
5.3.120.0000.06014.57
5.3.110.0100.07314.79
5.3.100.0100.06314.15
5.3.90.0030.05314.29
5.3.80.0100.06014.09
5.3.70.0130.05714.02
5.3.60.0030.07014.16
5.3.50.0100.06713.95
5.3.40.0070.06014.27
5.3.30.0070.04713.98
5.3.20.0070.05013.87
5.3.10.0000.05313.75
5.3.00.0130.04713.82
5.2.170.0070.05711.32
5.2.160.0100.04011.18
5.2.150.0070.05711.30
5.2.140.0130.04011.26
5.2.130.0030.05311.10
5.2.120.0070.04011.22
5.2.110.0030.04011.32
5.2.100.0100.04711.22
5.2.90.0030.04711.22
5.2.80.0070.05711.34
5.2.70.0000.05311.20
5.2.60.0070.04711.23
5.2.50.0100.04311.09
5.2.40.0030.04311.11
5.2.30.0100.04011.04
5.2.20.0070.04311.14
5.2.10.0030.04311.05
5.2.00.0100.04010.86
5.1.60.0130.04010.14
5.1.50.0000.05010.10
5.1.40.0100.04310.20
5.1.30.0000.05310.55
5.1.20.0000.05710.64
5.1.10.0200.03710.43
5.1.00.0170.03710.27
5.0.50.0170.0208.67
5.0.40.0000.0308.60
5.0.30.0000.0608.42
5.0.20.0030.0278.36
5.0.10.0070.0238.21
5.0.00.0070.0408.28
4.4.90.0000.0237.20
4.4.80.0130.0337.20
4.4.70.0070.0237.20
4.4.60.0000.0307.20
4.4.50.0030.0237.20
4.4.40.0030.0337.20
4.4.30.0070.0237.20
4.4.20.0030.0277.20
4.4.10.0070.0237.20
4.4.00.0000.0377.20
4.3.110.0030.0237.20
4.3.100.0030.0237.20
4.3.90.0000.0307.20
4.3.80.0070.0337.20
4.3.70.0000.0207.20
4.3.60.0070.0177.20
4.3.50.0070.0177.20
4.3.40.0030.0307.20
4.3.30.0000.0237.20
4.3.20.0000.0277.20
4.3.10.0070.0277.20
4.3.00.0000.0236.75

preferences:
38.64 ms | 401 KiB | 5 Q