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/@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.40.0160.00619.27
8.3.30.0070.00718.96
8.3.20.0050.00319.54
8.3.10.0000.00822.19
8.3.00.0040.00420.93
8.2.170.0100.00722.96
8.2.160.0070.00722.58
8.2.150.0070.00025.66
8.2.140.0040.01124.66
8.2.130.0050.00222.77
8.2.120.0080.00026.35
8.2.110.0040.00420.80
8.2.100.0080.00618.04
8.2.90.0000.00819.60
8.2.80.0040.00418.30
8.2.70.0060.00317.88
8.2.60.0090.00018.15
8.2.50.0040.00418.18
8.2.40.0040.00422.74
8.2.30.0080.00021.32
8.2.20.0040.00418.60
8.2.10.0050.00218.53
8.2.00.0000.00718.55
8.1.270.0080.00024.14
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00024.20
8.1.230.0110.00021.28
8.1.220.0100.00018.04
8.1.210.0030.00518.77
8.1.200.0040.00417.60
8.1.190.0060.00317.72
8.1.180.0040.00418.10
8.1.170.0000.00918.96
8.1.160.0040.00419.42
8.1.150.0000.00819.25
8.1.140.0040.00420.02
8.1.130.0040.00419.34
8.1.120.0030.00617.63
8.1.110.0000.00717.71
8.1.100.0040.00417.89
8.1.90.0000.00817.88
8.1.80.0000.00717.84
8.1.70.0000.00717.82
8.1.60.0000.00917.78
8.1.50.0000.00817.89
8.1.40.0060.00317.70
8.1.30.0040.00418.12
8.1.20.0000.00717.84
8.1.10.0040.00417.68
8.1.00.0050.00217.75
8.0.300.0070.00018.77
8.0.290.0090.00017.13
8.0.280.0030.00318.85
8.0.270.0030.00317.77
8.0.260.0040.00417.17
8.0.250.0000.00717.50
8.0.240.0030.00617.50
8.0.230.0070.00017.45
8.0.220.0000.01017.17
8.0.210.0070.00017.32
8.0.200.0050.00317.41
8.0.190.0040.00417.45
8.0.180.0000.00717.36
8.0.170.0000.00717.26
8.0.160.0000.00717.18
8.0.150.0040.00417.22
8.0.140.0000.00717.36
8.0.130.0050.00313.94
8.0.120.0040.00417.11
8.0.110.0000.00717.36
8.0.100.0040.00417.22
8.0.90.0070.00017.31
8.0.80.0070.00717.31
8.0.70.0040.00417.13
8.0.60.0080.00017.36
8.0.50.0080.00017.19
8.0.30.0080.01017.33
8.0.20.0090.01117.41
8.0.10.0040.00417.57
8.0.00.0030.01417.34
7.4.330.0000.00515.55
7.4.320.0000.00617.01
7.4.300.0030.00316.93
7.4.290.0040.00417.03
7.4.280.0000.00816.89
7.4.270.0030.00316.90
7.4.260.0050.00013.74
7.4.250.0000.00716.77
7.4.240.0030.00316.91
7.4.230.0000.00716.98
7.4.220.0090.00916.89
7.4.210.0050.00916.88
7.4.200.0040.00416.80
7.4.160.0080.00916.82
7.4.150.0160.00317.40
7.4.140.0100.01017.86
7.4.130.0140.01016.76
7.4.120.0110.01016.92
7.4.110.0100.00716.84
7.4.100.0120.01216.78
7.4.90.0130.00716.70
7.4.80.0110.00719.39
7.4.70.0090.00916.73
7.4.60.0060.00916.77
7.4.50.0060.01116.89
7.4.40.0130.00317.00
7.4.30.0120.00616.85
7.4.00.0120.00315.08
7.3.330.0000.00513.31
7.3.320.0000.00513.61
7.3.310.0000.00716.78
7.3.300.0000.00716.54
7.3.290.0080.00916.66
7.3.280.0070.00916.61
7.3.270.0150.00317.40
7.3.260.0110.00816.68
7.3.250.0110.01016.66
7.3.240.0100.00716.64
7.3.230.0150.01016.86
7.3.210.0130.00316.53
7.3.200.0120.00916.60
7.3.190.0090.00916.88
7.3.180.0060.00916.74
7.3.170.0060.01017.02
7.3.160.0100.01016.80
7.3.10.0090.00316.83
7.3.00.0050.00516.63
7.2.330.0090.00916.64
7.2.320.0140.00916.79
7.2.310.0070.01017.01
7.2.300.0090.00616.83
7.2.290.0070.01416.73
7.2.130.0060.00616.61
7.2.120.0030.00716.90
7.2.110.0070.00416.89
7.2.100.0030.00716.69
7.2.90.0070.00716.84
7.2.80.0070.00717.01
7.2.70.0080.00817.21
7.2.60.0050.01117.06
7.2.50.0060.00817.00
7.2.40.0000.01116.84
7.2.30.0060.00616.94
7.2.20.0070.00416.91
7.2.10.0060.00616.84
7.2.00.0150.00818.21
7.1.250.0000.01015.53
7.1.200.0100.00316.04
7.1.100.0070.00718.21
7.1.70.0030.00617.44
7.1.60.0130.01335.29
7.1.50.0130.01334.74
7.1.40.0130.01334.40
7.1.30.0130.01034.52
7.1.20.0130.01734.64
7.1.10.0000.01016.79
7.1.00.0100.00316.77
7.0.200.0070.00316.61
7.0.190.0070.00316.88
7.0.180.0030.00716.42
7.0.170.0030.01016.46
7.0.160.0030.01316.58
7.0.150.0070.00716.49
7.0.140.0000.01316.54
7.0.130.0070.00716.60
7.0.120.0070.00716.64
7.0.110.0070.00716.57
7.0.100.0070.00716.65
7.0.90.0070.00716.50
7.0.80.0000.01016.73
7.0.70.0030.01316.46
7.0.60.0070.00716.54
7.0.50.0000.02016.54
7.0.40.0100.00316.82
7.0.30.0030.00716.73
7.0.20.0070.00316.79
7.0.10.0000.01016.54
7.0.00.0030.00716.79

preferences:
59.19 ms | 400 KiB | 5 Q