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" && @field="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.01418.58
8.3.50.0120.00316.77
8.3.40.0120.00319.09
8.3.30.0070.00718.99
8.3.20.0090.00019.53
8.3.10.0080.00022.36
8.3.00.0040.00421.39
8.2.180.0120.00319.04
8.2.170.0030.01522.96
8.2.160.0070.00722.57
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0080.00022.75
8.2.120.0060.00326.35
8.2.110.0100.00020.73
8.2.100.0080.00418.28
8.2.90.0050.00319.55
8.2.80.0000.00818.17
8.2.70.0040.00418.00
8.2.60.0060.00318.30
8.2.50.0040.00418.18
8.2.40.0040.00422.67
8.2.30.0040.00421.44
8.2.20.0080.00018.33
8.2.10.0000.00818.32
8.2.00.0000.00718.55
8.1.280.0060.00925.92
8.1.270.0040.00422.45
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.06
8.1.230.0040.00819.66
8.1.220.0050.00518.02
8.1.210.0060.00318.77
8.1.200.0000.01017.72
8.1.190.0000.00817.60
8.1.180.0040.00418.10
8.1.170.0040.00419.03
8.1.160.0000.00719.51
8.1.150.0060.00321.18
8.1.140.0040.00419.89
8.1.130.0000.00819.35
8.1.120.0100.00017.86
8.1.110.0050.00217.68
8.1.100.0080.00017.56
8.1.90.0050.00217.67
8.1.80.0000.00717.80
8.1.70.0040.00417.84
8.1.60.0040.00418.03
8.1.50.0000.00817.74
8.1.40.0000.00817.71
8.1.30.0090.00017.87
8.1.20.0060.00317.92
8.1.10.0040.00417.61
8.1.00.0000.00817.75
8.0.300.0030.00518.77
8.0.290.0070.00017.25
8.0.280.0070.00018.83
8.0.270.0000.00717.64
8.0.260.0070.00017.18
8.0.250.0000.00717.52
8.0.240.0000.00717.45
8.0.230.0030.00617.47
8.0.220.0060.00317.37
8.0.210.0000.00717.34
8.0.200.0000.00717.38
8.0.190.0090.00017.34
8.0.180.0000.00717.41
8.0.170.0030.00317.40
8.0.160.0040.00417.30
8.0.150.0030.00417.15
8.0.140.0000.00717.37
8.0.130.0000.00613.94
8.0.120.0000.00717.31
8.0.110.0000.00717.16
8.0.100.0040.00417.25
8.0.90.0000.00717.22
8.0.80.0100.01017.25
8.0.70.0050.00317.27
8.0.60.0040.00417.31
8.0.50.0040.00417.30
8.0.30.0080.00917.40
8.0.20.0130.00717.42
8.0.10.0040.00417.32
8.0.00.0130.00617.27
7.4.330.0020.00215.55
7.4.320.0000.00617.04
7.4.300.0030.00317.02
7.4.290.0060.00316.89
7.4.280.0040.00417.05
7.4.270.0050.00316.93
7.4.260.0070.00013.44
7.4.250.0000.00716.95
7.4.240.0040.00317.00
7.4.230.0040.00416.82
7.4.220.0160.00316.79
7.4.210.0070.00716.82
7.4.200.0040.00416.92
7.4.160.0130.00516.84
7.4.150.0100.01017.40
7.4.140.0120.00617.86
7.4.130.0110.01116.89
7.4.120.0120.00716.85
7.4.110.0090.00916.82
7.4.100.0120.00916.80
7.4.90.0140.00916.93
7.4.80.0100.01319.39
7.4.70.0110.00816.80
7.4.60.0080.00816.88
7.4.50.0090.00316.95
7.4.40.0060.00916.95
7.4.30.0070.01016.95
7.4.00.0030.00815.08
7.3.330.0000.00513.21
7.3.320.0030.00313.60
7.3.310.0070.00016.70
7.3.300.0070.00016.48
7.3.290.0060.01016.67
7.3.280.0080.00816.63
7.3.270.0070.01017.40
7.3.260.0200.01316.79
7.3.250.0090.01116.78
7.3.240.0140.00716.83
7.3.230.0090.00917.02
7.3.210.0030.01516.57
7.3.200.0040.01216.66
7.3.190.0130.00716.94
7.3.180.0100.00716.57
7.3.170.0120.00916.76
7.3.160.0000.01616.57
7.3.120.0090.00614.91
7.3.110.0070.00714.81
7.3.100.0130.00014.75
7.3.90.0060.00914.91
7.3.80.0060.00915.01
7.3.70.0140.00014.57
7.3.60.0030.01014.75
7.3.50.0110.00714.91
7.3.40.0060.00915.07
7.3.30.0090.00014.91
7.3.20.0140.00016.77
7.3.10.0130.00316.77
7.3.00.0060.00616.64
7.2.330.0170.01016.80
7.2.320.0130.01016.95
7.2.310.0160.00416.63
7.2.300.0060.01116.85
7.2.290.0090.00616.75
7.2.250.0070.01315.36
7.2.240.0000.01315.26
7.2.230.0110.00415.07
7.2.220.0060.00615.13
7.2.210.0030.01015.07
7.2.200.0120.00615.01
7.2.190.0070.00315.11
7.2.180.0000.01015.40
7.2.170.0120.00315.04
7.2.160.0040.00715.04
7.2.150.0030.00617.22
7.2.140.0060.00917.11
7.2.130.0100.00316.86
7.2.120.0090.00617.21
7.2.110.0070.01117.08
7.2.100.0000.00916.85
7.2.90.0070.01016.71
7.2.80.0100.00716.90
7.2.70.0070.00716.82
7.2.60.0020.01217.04
7.2.50.0030.01317.07
7.2.40.0070.00717.08
7.2.30.0000.01016.96
7.2.20.0060.01016.89
7.2.10.0070.00717.01
7.2.00.0010.00918.20
7.1.330.0090.00315.96
7.1.320.0070.00715.82
7.1.310.0060.00615.80
7.1.300.0000.01415.98
7.1.290.0030.01315.83
7.1.280.0030.00615.70
7.1.270.0000.01215.97
7.1.260.0000.01016.04
7.1.250.0060.00616.17
7.1.240.0060.01215.92
7.1.230.0040.00415.77
7.1.220.0030.00615.93
7.1.210.0040.01115.78
7.1.200.0060.00515.98
7.1.190.0090.00415.99
7.1.180.0070.00716.08
7.1.170.0090.00616.04
7.1.160.0070.00715.96
7.1.150.0060.00816.06
7.1.140.0120.00615.98
7.1.130.0040.01116.00
7.1.120.0100.00315.88
7.1.110.0090.00316.06
7.1.100.0060.00817.11
7.1.90.0100.00315.93
7.1.80.0030.01315.98
7.1.70.0020.01216.64
7.1.60.0530.00824.53
7.1.50.0470.00524.59
7.1.40.0420.00824.26
7.1.30.0520.01224.29
7.1.20.0350.00824.45
7.1.10.0300.00815.38
7.1.00.0410.00515.37
7.0.330.0090.00015.69
7.0.320.0040.01015.78
7.0.310.0070.00715.79
7.0.300.0070.00715.87
7.0.290.0070.00715.49
7.0.280.0060.01215.61
7.0.270.0000.01015.41
7.0.260.0060.00915.52
7.0.250.0060.01015.46
7.0.240.0060.00615.34
7.0.230.0040.01115.78
7.0.220.0000.01215.84
7.0.210.0070.00415.67
7.0.200.0570.00515.44
7.0.190.0520.00415.30
7.0.180.0410.00615.13
7.0.170.0470.01215.14
7.0.160.0650.00815.10
7.0.150.0280.01015.02
7.0.140.0370.01215.23
7.0.130.0350.01015.16
7.0.120.0350.01015.18
7.0.110.0400.00715.18
7.0.100.0330.01115.02
7.0.90.0390.00915.18
7.0.80.0470.01215.20
7.0.70.0330.01215.18
7.0.60.0330.01215.22
7.0.50.0450.00715.20
7.0.40.0360.00514.17
7.0.30.0340.00914.31
7.0.20.0330.01014.33
7.0.10.0350.00714.29
7.0.00.0300.01114.28
5.6.400.0060.00614.59
5.6.390.0060.00914.77
5.6.380.0060.00714.79
5.6.370.0060.00314.29
5.6.360.0060.00614.62
5.6.350.0070.00714.91
5.6.340.0100.01014.57
5.6.330.0070.00714.49
5.6.320.0000.01314.54
5.6.310.0060.00914.53
5.6.300.0030.00914.50
5.6.290.0060.01014.46
5.6.280.0070.00714.28
5.6.270.0030.01414.45
5.6.260.0030.01014.14
5.6.250.0100.00314.82
5.6.240.0030.00914.84
5.6.230.0060.00314.26
5.6.220.0110.00714.49
5.6.210.0070.01014.41
5.6.200.0090.00614.50
5.6.190.0090.00914.36
5.6.180.0060.00314.18
5.6.170.0060.00814.18
5.6.160.0000.01214.51
5.6.150.0130.00314.43
5.6.140.0040.01114.31
5.6.130.0090.00614.51
5.6.120.0080.00414.40
5.6.110.0080.00614.49
5.6.100.0100.00014.31
5.6.90.0060.00314.77
5.6.80.0090.00314.74
5.6.70.0030.00914.39
5.6.60.0000.01514.38
5.6.50.0070.01014.34
5.6.40.0030.01614.59
5.6.30.0150.00314.20
5.6.20.0100.00714.28
5.6.10.0070.01014.17
5.6.00.0060.00314.36

preferences:
69.62 ms | 401 KiB | 5 Q