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.0150.00618.56
8.3.50.0090.00916.97
8.3.40.0070.00719.40
8.3.30.0120.00619.17
8.3.20.0080.00019.58
8.3.10.0040.00422.14
8.3.00.0050.00321.28
8.2.180.0110.01118.72
8.2.170.0120.00322.96
8.2.160.0100.00322.50
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0000.00821.06
8.2.120.0050.00326.35
8.2.110.0060.00320.77
8.2.100.0000.01218.03
8.2.90.0040.00419.46
8.2.80.0060.00318.30
8.2.70.0030.00618.00
8.2.60.0000.00818.18
8.2.50.0030.00618.28
8.2.40.0040.00422.84
8.2.30.0000.00821.45
8.2.20.0040.00418.47
8.2.10.0040.00418.43
8.2.00.0020.00518.39
8.1.280.0070.00725.92
8.1.270.0080.00022.56
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00322.79
8.1.230.0110.00019.39
8.1.220.0000.00918.01
8.1.210.0060.00318.77
8.1.200.0090.00017.73
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0050.00318.95
8.1.160.0050.00319.30
8.1.150.0000.00821.16
8.1.140.0000.00719.87
8.1.130.0070.00019.18
8.1.120.0000.00717.66
8.1.110.0000.00717.64
8.1.100.0000.00917.69
8.1.90.0080.00017.88
8.1.80.0020.00517.61
8.1.70.0040.00417.64
8.1.60.0000.00817.74
8.1.50.0050.00317.96
8.1.40.0050.00318.00
8.1.30.0000.00818.05
8.1.20.0040.00418.07
8.1.10.0000.00817.91
8.1.00.0040.00417.74
8.0.300.0050.00318.77
8.0.290.0000.00817.00
8.0.280.0030.00318.90
8.0.270.0000.00717.55
8.0.260.0070.00017.36
8.0.250.0030.00317.17
8.0.240.0040.00417.23
8.0.230.0000.00717.36
8.0.220.0090.00017.34
8.0.210.0070.00017.38
8.0.200.0030.00317.47
8.0.190.0090.00017.48
8.0.180.0050.00317.43
8.0.170.0040.00417.14
8.0.160.0040.00417.15
8.0.150.0000.00817.30
8.0.140.0000.00717.40
8.0.130.0040.00413.67
8.0.120.0030.00317.07
8.0.110.0040.00417.28
8.0.100.0040.00417.44
8.0.90.0000.00717.28
8.0.80.0030.01317.26
8.0.70.0080.00017.24
8.0.60.0000.00717.31
8.0.50.0000.00817.29
8.0.30.0080.00817.38
8.0.20.0050.01417.47
8.0.10.0040.00417.23
8.0.00.0080.00817.16
7.4.330.0000.00515.55
7.4.320.0050.00216.89
7.4.300.0060.00016.93
7.4.290.0000.00917.03
7.4.280.0050.00316.96
7.4.270.0030.00316.92
7.4.260.0000.00513.60
7.4.250.0000.00716.89
7.4.240.0040.00416.79
7.4.230.0000.00716.68
7.4.220.0090.00916.93
7.4.210.0090.00616.90
7.4.200.0070.00016.89
7.4.160.0100.00616.90
7.4.150.0150.00417.40
7.4.140.0080.01117.86
7.4.130.0100.01016.75
7.4.120.0070.01416.88
7.4.110.0090.00916.94
7.4.100.0100.00816.74
7.4.90.0090.00816.93
7.4.80.0140.00419.39
7.4.70.0130.00817.02
7.4.60.0030.01316.92
7.4.50.0070.00716.95
7.4.40.0070.01016.96
7.4.30.0170.00616.81
7.4.00.0060.01015.19
7.3.330.0060.00013.65
7.3.320.0020.00213.36
7.3.310.0000.00816.74
7.3.300.0030.00316.57
7.3.290.0030.01116.60
7.3.280.0120.00616.61
7.3.270.0150.00417.40
7.3.260.0080.00916.75
7.3.250.0150.00716.65
7.3.240.0100.00716.67
7.3.230.0070.01516.86
7.3.210.0030.01316.64
7.3.200.0040.01216.72
7.3.190.0120.00616.57
7.3.180.0060.00916.57
7.3.170.0110.00516.63
7.3.160.0160.00016.75
7.2.330.0160.00716.71
7.2.320.0090.00916.77
7.2.310.0050.01216.95
7.2.300.0140.00716.95
7.2.290.0060.01316.91
7.2.60.0060.01017.26
7.2.00.0000.01219.61
7.1.200.0200.00715.82
7.1.100.0040.01118.26
7.1.70.0060.00317.11
7.1.60.1170.01333.35
7.1.50.0970.01333.18
7.1.40.1070.01032.69
7.1.30.1570.00332.81
7.1.20.0930.01732.81
7.1.10.0770.01014.90
7.1.00.0670.01015.04
7.0.200.1430.01014.95
7.0.190.1200.00714.79
7.0.180.1000.00714.66
7.0.170.1430.00314.56
7.0.160.1100.01014.64
7.0.150.0870.00714.62
7.0.140.0730.01314.62
7.0.130.0700.01314.92
7.0.120.1000.01014.86
7.0.110.0930.01014.77
7.0.100.2030.01014.83
7.0.90.0930.01014.84
7.0.80.0530.01014.88
7.0.70.0600.00714.71
7.0.60.0070.00714.73
7.0.50.0530.01014.75
7.0.40.0770.01014.96
7.0.30.0530.01015.01
7.0.20.0900.01314.78
7.0.10.0630.00714.87
7.0.00.0700.00714.86

preferences:
36.58 ms | 401 KiB | 5 Q