3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str=<<<XML <lookups> <lookup category="General" field="Country Code" value="FI" entityId="1" active="true" /> <lookup category="General" field="Country Name" value="Finland" entityId="2" active="true" /> <lookup category="General" field="Country Code" value="FI2" entityId="1" active="true" /> <lookup category="General" field="Country Name" value="Finland2" entityId="3" active="true" /> <lookup category="General" field="Country Code" value="FI3" entityId="1" active="true" /> <lookup category="General" field="Country Name" value="Finland3" entityId="4" active="true" /> <lookup category="General" field="Country Code" value="FI4" entityId="1" active="true" /> <lookup category="General" field="Country Name" value="Finland4" entityId="5" active="true" /> </lookups> XML; $xml=simplexml_load_string($str); $result=$xml->xpath('//lookup[@field="Country Code"]/@value'[@field="Country Name"]/@value'); foreach($result as $node) { echo $node; }

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)
7.1.60.0470.01333.07
7.1.50.0930.01032.86
7.1.40.0730.01332.34
7.1.30.0200.00732.49
7.1.20.0100.01332.68
7.1.10.0470.01014.28
7.1.00.0600.00714.86
7.0.200.0000.01014.58
7.0.190.0530.00714.60
7.0.180.0570.01014.20
7.0.170.0030.01014.17
7.0.160.0670.00014.15
7.0.150.0030.00714.30
7.0.140.0030.00714.21
7.0.130.0030.01014.44
7.0.120.0030.01014.68
7.0.110.0570.01014.52
7.0.100.0430.00714.11
7.0.90.0000.01314.29
7.0.80.0570.01314.17
7.0.70.0030.00714.35
7.0.60.0700.00714.08
7.0.50.0670.00314.39
7.0.40.0070.00314.61
7.0.30.0030.00714.60
7.0.20.0800.00314.57
7.0.10.0730.00314.56
7.0.00.0730.01014.66

preferences:
141.74 ms | 1394 KiB | 7 Q