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(file_get_contents(http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml)); $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)
5.4.250.0070.04612.38
5.4.240.0090.05012.38
5.4.230.0110.04612.37
5.4.220.0030.04112.37
5.4.210.0060.03712.37
5.4.200.0090.05012.37
5.4.190.0080.04912.37
5.4.180.0090.04912.36
5.4.170.0090.05712.37
5.4.160.0100.04212.36
5.4.150.0080.03912.36
5.4.140.0030.03912.05
5.4.130.0040.03912.04
5.4.120.0050.03812.00
5.4.110.0050.03811.99
5.4.100.0040.04912.00
5.4.90.0060.04111.99
5.4.80.0120.06012.00
5.4.70.0130.04512.00
5.4.60.0090.04811.99
5.4.50.0070.05011.99
5.4.40.0100.05811.98
5.4.30.0080.04811.97
5.4.20.0050.04111.97
5.4.10.0040.04211.98
5.4.00.0060.03811.46
5.3.280.0060.04312.71
5.3.270.0050.04512.72
5.3.260.0060.04212.72
5.3.250.0050.04412.72
5.3.240.0040.04012.72
5.3.230.0060.04012.71
5.3.220.0110.04812.68
5.3.210.0100.07712.68
5.3.200.0100.07612.68
5.3.190.0130.06812.68
5.3.180.0130.05812.68
5.3.170.0110.07112.66
5.3.160.0070.04612.68
5.3.150.0070.05012.68
5.3.140.0080.03912.66
5.3.130.0070.04512.65
5.3.120.0060.04312.65
5.3.110.0080.03912.66
5.3.100.0070.03812.12
5.3.90.0060.03912.08
5.3.80.0060.04112.07
5.3.70.0070.04412.08
5.3.60.0070.03912.06
5.3.50.0050.03812.00
5.3.40.0050.03912.00
5.3.30.0050.03711.95
5.3.20.0050.03811.73
5.3.10.0060.03511.69
5.3.00.0070.05511.67

preferences:
139.58 ms | 1394 KiB | 7 Q