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.0140.00718.70
8.3.50.0150.00016.64
8.3.40.0070.00719.39
8.3.30.0150.00419.01
8.3.20.0040.00419.27
8.3.10.0090.00022.40
8.3.00.0050.00221.34
8.2.180.0150.00618.88
8.2.170.0130.00322.96
8.2.160.0030.01022.58
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0080.00020.75
8.2.120.0080.00026.35
8.2.110.0030.00720.91
8.2.100.0030.00918.41
8.2.90.0080.00018.45
8.2.80.0050.00318.41
8.2.70.0000.00918.30
8.2.60.0050.00518.59
8.2.50.0000.00818.10
8.2.40.0030.00522.68
8.2.30.0040.00421.32
8.2.20.0000.00818.32
8.2.10.0070.00018.58
8.2.00.0000.00718.39
8.1.280.0110.00425.92
8.1.270.0080.00022.42
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00720.68
8.1.230.0060.00621.14
8.1.220.0000.00818.03
8.1.210.0050.00318.95
8.1.200.0060.00317.60
8.1.190.0000.00817.60
8.1.180.0030.00518.10
8.1.170.0040.00419.28
8.1.160.0040.00419.55
8.1.150.0040.00421.06
8.1.140.0000.00719.76
8.1.130.0030.00519.18
8.1.120.0040.00417.93
8.1.110.0080.00017.86
8.1.100.0000.00717.68
8.1.90.0030.00517.82
8.1.80.0030.00517.90
8.1.70.0070.00017.63
8.1.60.0030.00617.75
8.1.50.0040.00417.94
8.1.40.0050.00317.96
8.1.30.0070.00018.15
8.1.20.0040.00417.86
8.1.10.0080.00017.91
8.1.00.0000.00717.82
8.0.300.0060.00320.10
8.0.290.0050.00317.13
8.0.280.0000.00718.83
8.0.270.0000.00717.69
8.0.260.0030.00317.27
8.0.250.0080.00017.19
8.0.240.0040.00417.26
8.0.230.0000.00817.20
8.0.220.0000.00817.39
8.0.210.0070.00017.14
8.0.200.0030.00317.21
8.0.190.0060.00317.38
8.0.180.0000.00817.36
8.0.170.0030.00317.17
8.0.160.0040.00417.34
8.0.150.0040.00417.36
8.0.140.0000.00717.13
8.0.130.0080.00013.91
8.0.120.0000.00717.41
8.0.110.0060.00317.44
8.0.100.0050.00317.27
8.0.90.0000.00717.34
8.0.80.0030.01217.25
8.0.70.0050.00317.34
8.0.60.0000.00717.24
8.0.50.0050.00217.15
8.0.30.0110.00817.44
8.0.20.0100.01217.48
8.0.10.0050.00317.25
8.0.00.0090.01017.07
7.4.330.0000.00515.55
7.4.320.0030.00316.86
7.4.300.0060.00017.01
7.4.290.0030.00616.94
7.4.280.0080.00016.99
7.4.270.0030.00316.88
7.4.260.0030.00313.64
7.4.250.0000.00816.73
7.4.240.0040.00416.73
7.4.230.0040.00416.81
7.4.220.0060.01316.83
7.4.210.0120.00916.87
7.4.200.0030.00316.84
7.4.160.0110.00516.80
7.4.150.0100.00717.40
7.4.140.0090.01117.86
7.4.130.0120.01216.97
7.4.120.0110.00716.92
7.4.110.0070.01016.95
7.4.100.0090.01216.69
7.4.90.0120.00616.86
7.4.80.0070.01119.39
7.4.70.0150.00616.83
7.4.60.0090.00616.70
7.4.50.0030.01316.54
7.4.40.0140.00916.86
7.4.30.0160.00617.08
7.4.10.0110.00715.32
7.4.00.0050.01015.24
7.3.330.0030.00313.63
7.3.320.0050.00013.26
7.3.310.0040.00216.73
7.3.300.0060.00016.57
7.3.290.0130.00316.57
7.3.280.0080.00916.55
7.3.270.0030.01417.40
7.3.260.0090.00816.76
7.3.250.0070.01216.63
7.3.240.0080.00816.68
7.3.230.0150.00916.68
7.3.210.0100.00716.76
7.3.200.0100.00716.84
7.3.190.0070.01016.71
7.3.180.0090.00916.91
7.3.170.0120.00916.80
7.3.160.0070.01016.62
7.3.130.0070.01114.82
7.3.120.0070.01114.73
7.3.110.0060.01114.86
7.3.100.0030.00914.93
7.3.90.0130.00714.84
7.3.80.0090.00315.34
7.3.70.0090.00914.94
7.3.60.0000.01114.81
7.3.50.0090.00314.96
7.3.40.0070.00714.92
7.3.30.0030.01014.99
7.3.20.0060.00916.72
7.3.10.0080.00616.77
7.3.00.0040.01216.74
7.2.330.0090.00916.89
7.2.320.0030.01616.81
7.2.310.0030.01316.94
7.2.300.0070.01016.92
7.2.290.0060.00916.94
7.2.260.0060.01214.90
7.2.250.0060.01015.20
7.2.240.0000.01615.17
7.2.230.0060.01215.12
7.2.220.0030.01715.12
7.2.210.0060.00915.14
7.2.200.0040.00815.20
7.2.190.0030.01014.98
7.2.180.0120.00015.21
7.2.170.0040.00815.23
7.2.160.0070.00715.04
7.2.150.0040.00817.18
7.2.140.0000.00917.24
7.2.130.0070.00616.96
7.2.120.0060.00917.00
7.2.110.0040.01016.88
7.2.100.0080.00816.95
7.2.90.0040.01016.99
7.2.80.0040.00916.99
7.2.70.0060.00616.98
7.2.60.0060.00516.92
7.2.50.0040.00817.05
7.2.40.0040.01016.92
7.2.30.0030.00916.93
7.2.20.0030.01016.98
7.2.10.0060.00916.93
7.2.00.0060.00617.69
7.1.330.0040.01116.02
7.1.320.0030.00615.80
7.1.310.0060.00616.11
7.1.300.0060.00615.86
7.1.290.0000.01315.96
7.1.280.0000.01216.14
7.1.270.0040.00815.99
7.1.260.0070.01015.94
7.1.250.0040.00815.79
7.1.240.0070.00415.86
7.1.230.0060.00616.04
7.1.220.0110.00315.94
7.1.210.0100.00316.17
7.1.200.0020.01015.94
7.1.190.0000.01015.95
7.1.180.0060.00616.02
7.1.170.0070.00716.07
7.1.160.0000.00915.68
7.1.150.0070.01015.83
7.1.140.0030.01016.09
7.1.130.0080.00615.98
7.1.120.0080.00815.80
7.1.110.0000.01416.09
7.1.100.0060.00717.14
7.1.90.0030.01215.93
7.1.80.0070.01015.88
7.1.70.0050.00816.58
7.1.60.0350.00824.62
7.1.50.0380.00824.42
7.1.40.0320.01424.40
7.1.30.0350.01024.36
7.1.20.0370.01024.44
7.1.10.0280.00915.47
7.1.00.0360.01115.56
7.0.330.0070.00315.69
7.0.320.0070.00715.61
7.0.310.0070.00715.86
7.0.300.0030.00615.55
7.0.290.0030.01015.57
7.0.280.0100.00315.61
7.0.270.0060.00915.70
7.0.260.0030.01015.50
7.0.250.0100.00315.55
7.0.240.0080.00415.60
7.0.230.0100.00315.78
7.0.220.0110.00515.50
7.0.210.0130.00015.69
7.0.200.0280.01415.33
7.0.190.0340.00315.26
7.0.180.0290.00915.22
7.0.170.0280.01415.24
7.0.160.0300.00815.15
7.0.150.0350.00715.06
7.0.140.0400.00715.33
7.0.130.0550.01115.24
7.0.120.0370.00515.34
7.0.110.0370.00715.03
7.0.100.0350.01015.17
7.0.90.0330.00915.27
7.0.80.0440.00615.38
7.0.70.0340.01115.22
7.0.60.0350.00615.08
7.0.50.0370.00815.28
7.0.40.0320.01214.29
7.0.30.0450.01114.38
7.0.20.0310.00814.32
7.0.10.0330.00514.36
7.0.00.0320.01014.36
5.6.400.0000.01114.43
5.6.390.0050.00514.68
5.6.380.0030.00914.33
5.6.370.0000.00914.45
5.6.360.0060.00914.66
5.6.350.0080.00014.47
5.6.340.0000.01414.41
5.6.330.0090.00614.38
5.6.320.0030.00514.31
5.6.310.0130.00014.77
5.6.300.0090.00314.26
5.6.290.0060.00914.13
5.6.280.0060.00614.33
5.6.270.0060.00614.77
5.6.260.0030.01014.60
5.6.250.0100.00314.49
5.6.240.0080.00614.45
5.6.230.0090.00614.34
5.6.220.0040.01114.76
5.6.210.0060.00614.46
5.6.200.0040.01114.40
5.6.190.0030.01014.52
5.6.180.0070.00714.72
5.6.170.0030.00714.54
5.6.160.0000.01214.50
5.6.150.0060.00614.59
5.6.140.0040.01214.51
5.6.130.0100.00714.18
5.6.120.0110.00014.26
5.6.110.0000.00914.34
5.6.100.0030.00714.60
5.6.90.0040.00714.39
5.6.80.0100.00014.68
5.6.70.0000.01314.38
5.6.60.0090.00614.30
5.6.50.0060.00314.63
5.6.40.0030.00614.57
5.6.30.0110.00414.44
5.6.20.0000.00914.76
5.6.10.0000.01214.24
5.6.00.0060.00614.16

preferences:
55.83 ms | 401 KiB | 5 Q