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'); 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.0120.00618.55
8.3.50.0040.01116.72
8.3.40.0140.00019.21
8.3.30.0120.00319.09
8.3.20.0040.00419.53
8.3.10.0030.00622.15
8.3.00.0000.00821.00
8.2.180.0070.01118.91
8.2.170.0110.00722.96
8.2.160.0110.00322.44
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00822.75
8.2.120.0080.00026.35
8.2.110.0030.00620.76
8.2.100.0060.00618.22
8.2.90.0050.00319.46
8.2.80.0050.00318.18
8.2.70.0060.00317.88
8.2.60.0080.00018.11
8.2.50.0090.00018.41
8.2.40.0040.00422.65
8.2.30.0040.00421.37
8.2.20.0040.00418.37
8.2.10.0000.00818.48
8.2.00.0050.00218.46
8.1.280.0000.01425.92
8.1.270.0000.00822.42
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.91
8.1.230.0030.00919.47
8.1.220.0040.00718.16
8.1.210.0000.00818.77
8.1.200.0070.00317.62
8.1.190.0080.00017.48
8.1.180.0000.00818.10
8.1.170.0030.00618.91
8.1.160.0000.00719.42
8.1.150.0050.00321.02
8.1.140.0070.00020.02
8.1.130.0040.00419.24
8.1.120.0040.00417.66
8.1.110.0000.00717.62
8.1.100.0040.00417.88
8.1.90.0000.00817.89
8.1.80.0030.00517.73
8.1.70.0080.00017.68
8.1.60.0040.00418.02
8.1.50.0000.00817.89
8.1.40.0080.00017.86
8.1.30.0080.00017.87
8.1.20.0040.00417.88
8.1.10.0080.00017.75
8.1.00.0030.00617.62
8.0.300.0040.00418.77
8.0.290.0000.00717.13
8.0.280.0070.00018.72
8.0.270.0070.00017.52
8.0.260.0030.00317.16
8.0.250.0030.00317.44
8.0.240.0070.00017.18
8.0.230.0000.00717.21
8.0.220.0040.00417.32
8.0.210.0000.00817.18
8.0.200.0080.00017.37
8.0.190.0030.00617.44
8.0.180.0040.00417.36
8.0.170.0000.00817.23
8.0.160.0040.00417.36
8.0.150.0000.00717.31
8.0.140.0030.00517.14
8.0.130.0000.00613.84
8.0.120.0000.00717.17
8.0.110.0040.00417.24
8.0.100.0000.00717.27
8.0.90.0050.00217.43
8.0.80.0060.00917.43
8.0.70.0070.00017.27
8.0.60.0050.00317.37
8.0.50.0000.00717.17
8.0.30.0130.00717.46
8.0.20.0080.01217.58
8.0.10.0000.00817.39
8.0.00.0100.01016.88
7.4.330.0000.00515.55
7.4.320.0030.00316.90
7.4.300.0000.00616.80
7.4.290.0040.00416.89
7.4.280.0040.00416.91
7.4.270.0030.00316.83
7.4.260.0030.00313.54
7.4.250.0040.00416.83
7.4.240.0040.00416.86
7.4.230.0000.00716.79
7.4.220.0070.01116.95
7.4.210.0000.01416.91
7.4.200.0030.00316.85
7.4.160.0120.01016.76
7.4.150.0170.00017.40
7.4.140.0120.00517.86
7.4.130.0030.01516.79
7.4.120.0110.00916.87
7.4.110.0030.01416.79
7.4.100.0130.00317.12
7.4.90.0090.00916.94
7.4.80.0130.00319.39
7.4.70.0070.01016.80
7.4.60.0060.01116.89
7.4.50.0060.01016.69
7.4.40.0080.00816.99
7.4.30.0110.00616.80
7.4.00.0070.01014.87
7.3.330.0030.00313.60
7.3.320.0050.00013.58
7.3.310.0070.00016.80
7.3.300.0070.00016.56
7.3.290.0100.00516.72
7.3.280.0080.00816.67
7.3.270.0080.00817.40
7.3.260.0070.01016.72
7.3.250.0120.01216.75
7.3.240.0120.00616.79
7.3.230.0120.01116.58
7.3.210.0050.01216.66
7.3.200.0130.00517.08
7.3.190.0070.01416.93
7.3.180.0070.01016.57
7.3.170.0160.00016.76
7.3.160.0130.00316.75
7.2.330.0060.01817.17
7.2.320.0110.00717.01
7.2.310.0140.00316.72
7.2.300.0070.01017.03
7.2.290.0000.02017.13
7.2.60.0040.00817.16
7.1.200.0060.00616.20
7.1.70.0150.00316.93
7.1.60.0200.01033.16
7.1.50.0370.01333.18
7.1.40.0770.01032.87
7.1.30.0670.01032.93
7.1.20.0770.01332.92
7.1.10.0730.01314.89
7.1.00.0700.01015.02
7.0.200.0000.01315.15
7.0.190.0600.01015.15
7.0.180.0600.00314.55
7.0.170.0600.00714.54
7.0.160.0600.01014.60
7.0.150.0830.00014.70
7.0.140.0730.00714.83
7.0.130.0730.01314.89
7.0.120.0870.00314.84
7.0.110.0730.01314.70
7.0.100.0770.00714.79
7.0.90.0700.01014.63
7.0.80.0700.00714.73
7.0.70.0730.00714.75
7.0.60.0730.00714.44
7.0.50.0800.01014.79
7.0.40.0700.00014.91
7.0.30.0670.00714.87
7.0.20.0630.01014.78
7.0.10.0600.00714.86
7.0.00.0600.00714.85

preferences:
33.43 ms | 400 KiB | 5 Q