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]'); 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.0150.00019.12
8.3.30.0060.00919.19
8.3.20.0040.00419.27
8.3.10.0050.00324.16
8.3.00.0000.00821.19
8.2.170.0090.00622.96
8.2.160.0100.00322.66
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00022.67
8.2.120.0080.00026.35
8.2.110.0030.00620.87
8.2.100.0070.00418.16
8.2.90.0050.00319.61
8.2.80.0030.00618.18
8.2.70.0060.00318.00
8.2.60.0040.00418.18
8.2.50.0060.00318.35
8.2.40.0000.00822.82
8.2.30.0000.00821.52
8.2.20.0070.00018.43
8.2.10.0000.00818.32
8.2.00.0000.00818.55
8.1.270.0030.00522.36
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00021.20
8.1.230.0060.00619.66
8.1.220.0030.00618.16
8.1.210.0060.00318.77
8.1.200.0030.00617.50
8.1.190.0000.00817.61
8.1.180.0080.00018.10
8.1.170.0000.00819.03
8.1.160.0050.00319.32
8.1.150.0000.00821.11
8.1.140.0000.00720.12
8.1.130.0040.00419.35
8.1.120.0000.00817.66
8.1.110.0040.00417.86
8.1.100.0050.00317.82
8.1.90.0040.00417.62
8.1.80.0040.00417.68
8.1.70.0070.00017.84
8.1.60.0030.00517.97
8.1.50.0000.00817.73
8.1.40.0040.00418.01
8.1.30.0000.00817.77
8.1.20.0040.00418.01
8.1.10.0000.00817.84
8.1.00.0080.00017.58
8.0.300.0040.00418.77
8.0.290.0050.00317.25
8.0.280.0040.00418.81
8.0.270.0040.00417.61
8.0.260.0030.00317.27
8.0.250.0000.00717.19
8.0.240.0000.00717.23
8.0.230.0030.00317.16
8.0.220.0030.00617.38
8.0.210.0070.00017.18
8.0.200.0030.00317.46
8.0.190.0060.00317.27
8.0.180.0040.00417.41
8.0.170.0040.00417.30
8.0.160.0000.00817.15
8.0.150.0000.00717.30
8.0.140.0000.00717.29
8.0.130.0030.00313.80
8.0.120.0030.00517.11
8.0.110.0040.00417.17
8.0.100.0040.00417.35
8.0.90.0040.00417.31
8.0.80.0130.00917.33
8.0.70.0000.00717.20
8.0.60.0080.00017.38
8.0.50.0040.00417.18
8.0.30.0060.01117.22
8.0.20.0070.01117.41
8.0.10.0000.00717.43
8.0.00.0100.00717.01
7.4.330.0050.00015.55
7.4.320.0000.00616.96
7.4.300.0060.00016.93
7.4.290.0040.00716.84
7.4.280.0000.00816.90
7.4.270.0040.00416.83
7.4.260.0030.00313.74
7.4.250.0000.00716.71
7.4.240.0040.00416.85
7.4.230.0050.00216.95
7.4.220.0110.00717.04
7.4.210.0070.00716.88
7.4.200.0070.00016.82
7.4.160.0130.00516.72
7.4.150.0070.01017.40
7.4.140.0120.00817.86
7.4.130.0230.00316.97
7.4.120.0090.01016.81
7.4.110.0090.01316.90
7.4.100.0150.00616.74
7.4.90.0130.00316.99
7.4.80.0080.01119.39
7.4.70.0090.00916.91
7.4.60.0040.01116.78
7.4.50.0090.00616.88
7.4.40.0000.01616.74
7.4.30.0060.01516.79
7.4.00.0040.01115.39
7.3.330.0040.00413.45
7.3.320.0050.00013.24
7.3.310.0070.00016.41
7.3.300.0000.00716.68
7.3.290.0060.00816.71
7.3.280.0080.00916.61
7.3.270.0060.01317.40
7.3.260.0080.00816.78
7.3.250.0090.01216.65
7.3.240.0080.01116.76
7.3.230.0150.00716.61
7.3.210.0030.01416.74
7.3.200.0060.00916.70
7.3.190.0090.00916.71
7.3.180.0100.01016.70
7.3.170.0070.01116.58
7.3.160.0030.01316.70
7.3.10.0030.01016.75
7.3.00.0040.00816.66
7.2.330.0100.00716.71
7.2.320.0130.00616.86
7.2.310.0140.00417.00
7.2.300.0060.01216.65
7.2.290.0180.00016.74
7.2.130.0120.00616.95
7.2.120.0030.00617.22
7.2.110.0070.00716.66
7.2.100.0070.00417.09
7.2.90.0040.00717.05
7.2.80.0060.00616.94
7.2.70.0030.00916.79
7.2.60.0050.00916.96
7.2.50.0000.01616.95
7.2.40.0040.00416.93
7.2.30.0030.01317.22
7.2.20.0070.00316.97
7.2.10.0060.00917.09
7.2.00.0060.00918.31
7.1.250.0040.00715.96
7.1.240.0090.00316.06
7.1.230.0050.00516.01
7.1.220.0040.00715.66
7.1.210.0000.00915.94
7.1.200.0050.00715.83
7.1.190.0000.01015.96
7.1.180.0060.00615.70
7.1.170.0000.01315.97
7.1.160.0030.00916.02
7.1.150.0080.00015.99
7.1.140.0040.00915.97
7.1.130.0070.00415.75
7.1.120.0030.00615.97
7.1.110.0100.00315.98
7.1.100.0040.00717.00
7.1.90.0080.00415.88
7.1.80.0050.00515.95
7.1.70.0050.00616.60
7.1.60.0230.01024.55
7.1.50.0290.00624.33
7.1.40.0240.01024.24
7.1.30.0270.01124.38
7.1.20.0290.01124.31
7.1.10.0200.00815.44
7.1.00.0180.01115.54
7.0.330.0000.01315.66
7.0.320.0090.00315.82
7.0.310.0050.00315.48
7.0.300.0090.00615.78
7.0.290.0030.01015.65
7.0.280.0000.01515.68
7.0.270.0040.00715.63
7.0.260.0090.00615.62
7.0.250.0040.01115.47
7.0.240.0070.00715.45
7.0.230.0040.00415.50
7.0.220.0110.00315.76
7.0.210.0090.00315.50
7.0.200.0180.00915.17
7.0.190.0180.00815.29
7.0.180.0170.00814.96
7.0.170.0220.00715.17
7.0.160.0210.00615.18
7.0.150.0210.00815.16
7.0.140.0480.00915.32
7.0.130.0170.01215.15
7.0.120.0210.00615.24
7.0.110.0180.01015.19
7.0.100.0180.00915.29
7.0.90.0290.00915.19
7.0.80.0250.01515.11
7.0.70.0220.01115.29
7.0.60.0400.00315.01
7.0.50.0220.01015.21
7.0.40.0220.00914.38
7.0.30.0280.00314.21
7.0.20.0250.00514.19
7.0.10.0240.00614.18
7.0.00.0180.01214.37
5.6.380.0000.01414.29

preferences:
69.49 ms | 400 KiB | 5 Q