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.60.0070.01118.80
8.3.50.0070.00716.86
8.3.40.0090.00619.22
8.3.30.0120.00319.13
8.3.20.0040.00419.54
8.3.10.0000.00722.10
8.3.00.0050.00321.34
8.2.180.0110.01119.04
8.2.170.0110.00722.96
8.2.160.0090.00522.30
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00022.71
8.2.120.0000.00826.35
8.2.110.0080.00020.82
8.2.100.0060.00618.22
8.2.90.0080.00019.55
8.2.80.0000.00818.28
8.2.70.0060.00317.88
8.2.60.0000.00818.18
8.2.50.0030.00618.41
8.2.40.0040.00422.71
8.2.30.0040.00421.28
8.2.20.0080.00018.31
8.2.10.0040.00418.38
8.2.00.0040.00418.53
8.1.280.0110.00425.92
8.1.270.0000.00924.30
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00421.14
8.1.230.0060.00619.50
8.1.220.0000.00918.16
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0060.00317.72
8.1.180.0000.00918.10
8.1.170.0030.00619.04
8.1.160.0070.00019.43
8.1.150.0030.00519.22
8.1.140.0050.00220.04
8.1.130.0000.00719.30
8.1.120.0080.00017.84
8.1.110.0040.00417.94
8.1.100.0050.00317.71
8.1.90.0040.00417.62
8.1.80.0030.00317.84
8.1.70.0000.00717.73
8.1.60.0030.00517.96
8.1.50.0040.00417.97
8.1.40.0030.00617.88
8.1.30.0000.00718.11
8.1.20.0040.00417.88
8.1.10.0040.00417.91
8.1.00.0000.00717.64
8.0.300.0040.00418.77
8.0.290.0060.00317.13
8.0.280.0000.00718.74
8.0.270.0040.00417.53
8.0.260.0000.00817.18
8.0.250.0050.00317.36
8.0.240.0040.00417.24
8.0.230.0030.00517.51
8.0.220.0000.01017.41
8.0.210.0000.00717.11
8.0.200.0070.00017.38
8.0.190.0080.00017.41
8.0.180.0080.00017.47
8.0.170.0000.00717.16
8.0.160.0060.00317.32
8.0.150.0070.00017.18
8.0.140.0040.00417.18
8.0.130.0030.00313.86
8.0.120.0000.00817.45
8.0.110.0070.00017.15
8.0.100.0040.00417.44
8.0.90.0000.00817.16
8.0.80.0110.00917.26
8.0.70.0040.00417.09
8.0.60.0050.00317.27
8.0.50.0050.00217.16
8.0.30.0080.01317.36
8.0.20.0110.00817.43
8.0.10.0040.00417.39
8.0.00.0080.01016.94
7.4.330.0020.00215.55
7.4.320.0060.00016.91
7.4.300.0000.00716.78
7.4.290.0000.00816.99
7.4.280.0000.00816.90
7.4.270.0000.00717.00
7.4.260.0050.00013.63
7.4.250.0000.00816.95
7.4.240.0000.00716.88
7.4.230.0030.00317.06
7.4.220.0130.01316.93
7.4.210.0120.00317.02
7.4.200.0040.00416.90
7.4.160.0030.01316.78
7.4.150.0090.00917.40
7.4.140.0060.01217.86
7.4.130.0210.00616.81
7.4.120.0100.00816.86
7.4.110.0090.00916.74
7.4.100.0070.01116.83
7.4.90.0120.00616.86
7.4.80.0080.00819.39
7.4.70.0120.00816.93
7.4.60.0130.00316.89
7.4.50.0120.00316.76
7.4.40.0080.00816.91
7.4.30.0070.01017.19
7.4.00.0030.01315.14
7.3.330.0030.00313.65
7.3.320.0000.00513.65
7.3.310.0040.00416.37
7.3.300.0000.00716.57
7.3.290.0040.01216.68
7.3.280.0120.00516.63
7.3.270.0140.00417.40
7.3.260.0130.01116.82
7.3.250.0080.01216.72
7.3.240.0090.00716.68
7.3.230.0100.01316.54
7.3.210.0060.00917.02
7.3.200.0090.00616.67
7.3.190.0080.00816.82
7.3.180.0090.00616.80
7.3.170.0120.00416.96
7.3.160.0100.01016.76
7.3.120.0070.00714.89
7.3.110.0100.00315.14
7.3.100.0030.00715.23
7.3.90.0000.01515.07
7.3.80.0000.01415.11
7.3.70.0030.00915.08
7.3.60.0100.00714.98
7.3.50.0090.00614.73
7.3.40.0040.01115.00
7.3.30.0070.01014.96
7.3.20.0030.01016.70
7.3.10.0000.01616.71
7.3.00.0070.00416.82
7.2.330.0120.00616.80
7.2.320.0060.01216.89
7.2.310.0070.01116.61
7.2.300.0080.00817.11
7.2.290.0150.00416.91
7.2.240.0060.01015.14
7.2.230.0040.01215.20
7.2.220.0070.00415.01
7.2.210.0080.00415.35
7.2.200.0030.01314.96
7.2.190.0070.00715.22
7.2.180.0110.00715.13
7.2.170.0060.01014.94
7.2.160.0000.01014.88
7.2.150.0030.01016.70
7.2.140.0070.00717.07
7.2.130.0110.00717.10
7.2.120.0030.00716.99
7.2.110.0070.00717.08
7.2.100.0090.00617.16
7.2.90.0140.00016.99
7.2.80.0070.01117.25
7.2.70.0040.00817.05
7.2.60.0100.00816.82
7.2.50.0070.01016.84
7.2.40.0070.01016.97
7.2.30.0030.01217.02
7.2.20.0040.01416.94
7.2.10.0030.01617.23
7.2.00.0030.01018.27
7.1.330.0090.00316.02
7.1.320.0030.00615.93
7.1.310.0080.00416.07
7.1.300.0040.01215.88
7.1.290.0070.00715.70
7.1.280.0040.01115.99
7.1.270.0060.00615.84
7.1.260.0040.01116.04
7.1.250.0040.01116.03
7.1.200.0000.01215.89
7.1.100.0100.00717.97
7.1.70.0000.01117.12
7.1.60.1070.01033.36
7.1.50.0100.01734.89
7.1.40.1000.01332.66
7.1.30.0970.00732.80
7.1.20.0900.01332.85
7.1.10.0030.00716.63
7.1.00.0730.00716.82
7.0.200.0900.01015.15
7.0.190.0000.01016.63
7.0.180.0070.00716.56
7.0.170.0900.00714.66
7.0.160.0030.00716.37
7.0.150.0000.01016.46
7.0.140.0700.01014.58
7.0.130.0000.01016.75
7.0.120.0000.01016.71
7.0.110.0000.01016.59
7.0.100.0070.00316.48
7.0.90.0030.00716.46
7.0.80.0030.01016.78
7.0.70.0000.01016.73
7.0.60.0000.01016.53
7.0.50.0070.00716.73
7.0.40.0000.01016.61
7.0.30.0070.00716.85
7.0.20.0070.00316.61
7.0.10.0030.00716.60
7.0.00.0070.00316.79

preferences:
46.86 ms | 400 KiB | 5 Q