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[@category="General"]/@Country Code][@Country Name]'); 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)
8.3.60.0110.00718.93
8.3.50.0040.01116.72
8.3.40.0100.00619.04
8.3.30.0060.00919.27
8.3.20.0060.00319.43
8.3.10.0040.00422.25
8.3.00.0050.00321.27
8.2.180.0120.00418.79
8.2.170.0130.00322.96
8.2.160.0110.00422.44
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00722.83
8.2.120.0040.00426.35
8.2.110.0070.00320.77
8.2.100.0040.00818.02
8.2.90.0030.00619.42
8.2.80.0000.00818.25
8.2.70.0030.00718.00
8.2.60.0000.00918.40
8.2.50.0090.00018.30
8.2.40.0040.00420.97
8.2.30.0040.00421.43
8.2.20.0030.00518.48
8.2.10.0080.00018.44
8.2.00.0040.00418.61
8.1.280.0120.00325.92
8.1.270.0030.00524.19
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00421.28
8.1.230.0080.00319.39
8.1.220.0070.00318.04
8.1.210.0030.00518.77
8.1.200.0030.00617.48
8.1.190.0050.00317.48
8.1.180.0000.00718.10
8.1.170.0000.00818.87
8.1.160.0040.00419.51
8.1.150.0000.00719.29
8.1.140.0040.00419.88
8.1.130.0070.00019.39
8.1.120.0080.00017.70
8.1.110.0040.00417.91
8.1.100.0000.00717.62
8.1.90.0030.00617.70
8.1.80.0000.00717.94
8.1.70.0000.00717.85
8.1.60.0060.00317.96
8.1.50.0000.00818.00
8.1.40.0000.00817.96
8.1.30.0040.00417.94
8.1.20.0000.00818.03
8.1.10.0050.00317.69
8.1.00.0040.00417.56
8.0.300.0040.00418.77
8.0.290.0080.00017.25
8.0.280.0000.00718.72
8.0.270.0050.00217.75
8.0.260.0000.00717.25
8.0.250.0000.00717.21
8.0.240.0040.00417.25
8.0.230.0000.00717.46
8.0.220.0100.00017.21
8.0.210.0030.00617.34
8.0.200.0040.00417.27
8.0.190.0040.00417.42
8.0.180.0000.00717.23
8.0.170.0000.00717.20
8.0.160.0040.00417.14
8.0.150.0070.00017.40
8.0.140.0070.00017.40
8.0.130.0030.00313.59
8.0.120.0070.00017.34
8.0.110.0000.00917.17
8.0.100.0040.00417.27
8.0.90.0000.00717.17
8.0.80.0090.00617.25
8.0.70.0000.00817.23
8.0.60.0040.00417.23
8.0.50.0040.00417.27
8.0.30.0100.00917.42
8.0.20.0090.01117.52
8.0.10.0000.00717.39
8.0.00.0120.00617.18
7.4.330.0050.00015.55
7.4.320.0030.00316.82
7.4.300.0000.00716.97
7.4.290.0070.00017.05
7.4.280.0030.00616.96
7.4.270.0030.00316.93
7.4.260.0060.00013.66
7.4.250.0030.00316.81
7.4.240.0040.00416.92
7.4.230.0030.00316.77
7.4.220.0060.01217.01
7.4.210.0090.00616.98
7.4.200.0000.00816.85
7.4.160.0080.00816.84
7.4.150.0120.00617.40
7.4.140.0120.00717.86
7.4.130.0100.01016.77
7.4.120.0070.01316.79
7.4.110.0090.00916.97
7.4.100.0140.00516.82
7.4.90.0120.00616.95
7.4.80.0100.01419.39
7.4.70.0090.01316.97
7.4.60.0060.01016.88
7.4.50.0050.00916.74
7.4.40.0080.00816.82
7.4.30.0040.01316.93
7.4.00.0000.01315.10
7.3.330.0000.00513.43
7.3.320.0030.00313.28
7.3.310.0000.00716.41
7.3.300.0000.00716.57
7.3.290.0090.00516.67
7.3.280.0060.01216.57
7.3.270.0090.00817.40
7.3.260.0100.00716.59
7.3.250.0140.00816.66
7.3.240.0060.01116.80
7.3.230.0090.01516.91
7.3.210.0080.00916.61
7.3.200.0060.00916.80
7.3.190.0130.00416.78
7.3.180.0090.00916.95
7.3.170.0100.00616.83
7.3.160.0140.00316.61
7.2.330.0070.01016.89
7.2.320.0000.01816.90
7.2.310.0120.00816.98
7.2.300.0090.00916.88
7.2.290.0120.00516.83
7.2.60.0100.00317.05
7.2.00.0000.01219.75
7.1.200.0040.00715.87
7.1.100.0050.00818.09
7.1.70.0040.00417.11
7.1.60.0170.01034.91
7.1.50.1200.00732.82
7.1.40.1700.00732.83
7.1.30.1770.02032.76
7.1.20.1200.01332.93
7.1.10.0030.00716.67
7.1.00.0900.01014.96
7.0.200.1170.00715.00
7.0.190.1030.01315.02
7.0.180.1470.01316.40
7.0.170.0030.01016.39
7.0.160.0970.00714.59
7.0.150.0900.00714.66
7.0.140.0030.01016.62
7.0.130.0970.01016.66
7.0.120.0970.01015.02
7.0.110.1000.00714.77
7.0.100.1270.00016.48
7.0.90.1300.00714.88
7.0.80.1130.01314.93
7.0.70.1070.01714.72
7.0.60.0000.01016.39
7.0.50.0070.00316.61
7.0.40.0870.01316.67
7.0.30.0030.01316.83
7.0.20.0100.00316.71
7.0.10.0930.01316.67
7.0.00.0730.01316.67

preferences:
46.7 ms | 400 KiB | 5 Q