3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <root> <item id="images"> <images handle="kings-of-leon_poster_v02_webjpg" path="workspace/assets/uploads/" type="file">kings of leon_poster_v02_WEB.jpg</images> </item> <item id="about"> <page-name handle="new-age" type="page-name">New Age</page-name> </item> <item id="about"> <page-name handle="new-age-2" type="page-name">New Age 2</page-name> </item> <item id="images"> <images handle="aae_seating-plan_v01jpg" path="workspace/assets/uploads/" type="file">AAE_Seating-plan_v01.jpg</images> </item> <item id="images"> <images handle="evidence-of-communication-between-myself-and-external-sourcespng" path="workspace/assets/uploads/" type="file">evidence-of-communication-between-myself-and-external-sources.png</images> </item> </root> '; $dom = new DOMDocument; $dom->loadXML($xml); //var_dump($dom); $xpath = new DOMXPath($dom); $res1 = $xpath->query('//root/item[@id="images"]/descendant::*[./@handle = "kings-of-leon_poster_v02_webjpg"]'); var_dump($res1->getElementsByTagName('item')->item(0)); foreach($res1 as $res){ var_dump($res); } ?>

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.68
8.3.50.0120.00522.11
8.3.40.0040.01119.34
8.3.30.0070.00719.21
8.3.20.0090.00019.10
8.3.10.0060.00320.84
8.3.00.0070.00318.00
8.2.180.0060.01217.00
8.2.170.0110.00422.96
8.2.160.0130.00322.58
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00820.26
8.2.110.0100.00022.75
8.2.100.0080.00418.03
8.2.90.0040.00419.40
8.2.80.0000.00818.30
8.2.70.0000.00817.88
8.2.60.0080.00018.18
8.2.50.0030.00618.18
8.2.40.0060.00318.47
8.2.30.0040.00420.11
8.2.20.0050.00218.05
8.2.10.0030.00618.17
8.2.00.0080.00018.13
8.1.280.0100.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00928.09
8.1.240.0030.00622.68
8.1.230.0080.00421.29
8.1.220.0050.00318.77
8.1.210.0030.00519.35
8.1.200.0060.00317.73
8.1.190.0040.00418.03
8.1.180.0040.00418.14
8.1.170.0050.00319.34
8.1.160.0040.00419.19
8.1.150.0000.00718.96
8.1.140.0040.00417.73
8.1.130.0030.00318.24
8.1.120.0030.00517.82
8.1.110.0070.00017.84
8.1.100.0070.00017.80
8.1.90.0040.00417.57
8.1.80.0040.00417.55
8.1.70.0030.00317.80
8.1.60.0080.00017.99
8.1.50.0000.00717.73
8.1.40.0000.00817.76
8.1.30.0040.00418.13
8.1.20.0030.00517.90
8.1.10.0030.00618.00
8.1.00.0060.00317.89
8.0.300.0030.00720.40
8.0.290.0060.00316.88
8.0.280.0000.00818.65
8.0.270.0000.00717.58
8.0.260.0030.00317.24
8.0.250.0000.00717.36
8.0.240.0080.00317.38
8.0.230.0030.00517.18
8.0.220.0040.00417.30
8.0.210.0000.00717.34
8.0.200.0040.00417.13
8.0.190.0030.00617.15
8.0.180.0020.00517.33
8.0.170.0000.01017.02
8.0.160.0040.00417.32
8.0.150.0060.00317.23
8.0.140.0000.00917.04
8.0.130.0030.00313.67
8.0.120.0050.00217.26
8.0.110.0080.00017.31
8.0.100.0070.00017.28
8.0.90.0000.00717.25
8.0.80.0040.01517.14
8.0.70.0040.00417.13
8.0.60.0030.00517.18
8.0.50.0000.00817.11
8.0.30.0120.00917.48
8.0.20.0100.00917.51
8.0.10.0000.00817.42
8.0.00.0100.01016.99
7.4.330.0050.00014.93
7.4.320.0030.00316.84
7.4.300.0030.00316.95
7.4.290.0000.00717.01
7.4.280.0040.00416.90
7.4.270.0050.00317.00
7.4.260.0000.00513.52
7.4.250.0000.00816.98
7.4.240.0000.00716.91
7.4.230.0030.00316.99
7.4.220.0120.00916.83
7.4.210.0050.01016.99
7.4.200.0000.00716.89
7.4.190.0040.00416.80
7.4.160.0080.00816.85
7.4.150.0060.01817.40
7.4.140.0060.01217.86
7.4.130.0150.00516.82
7.4.120.0120.00616.89
7.4.110.0080.01016.73
7.4.100.0110.00616.98
7.4.90.0100.00616.95
7.4.80.0060.01219.03
7.4.70.0130.00416.75
7.4.60.0140.00416.74
7.4.50.0000.00516.89
7.4.40.0040.00722.27
7.4.30.0140.00416.72
7.4.00.0050.01015.15
7.3.330.0030.00313.43
7.3.320.0060.00013.17
7.3.310.0040.00416.75
7.3.300.0070.00016.59
7.3.290.0090.00616.66
7.3.280.0060.00916.63
7.3.270.0090.00917.40
7.3.260.0080.01018.24
7.3.250.0090.00816.94
7.3.240.0120.00416.78
7.3.230.0000.01916.75
7.3.210.0090.00916.90
7.3.200.0120.00619.39
7.3.190.0090.01216.55
7.3.180.0030.01316.64
7.3.170.0100.00616.54
7.3.160.0060.00916.58
7.3.120.0050.01014.90
7.3.110.0070.01115.11
7.3.100.0030.01315.08
7.3.90.0130.00615.00
7.3.80.0030.01214.70
7.3.70.0110.00415.04
7.3.60.0040.01114.96
7.3.50.0100.00314.94
7.3.40.0150.00014.89
7.3.30.0120.00314.80
7.3.20.0100.00616.66
7.3.10.0110.00716.56
7.3.00.0130.00316.61
7.2.330.0110.00617.07
7.2.320.0060.01016.96
7.2.310.0120.01116.81
7.2.300.0060.01116.71
7.2.290.0100.00616.89
7.2.250.0060.00614.77
7.2.240.0100.01014.71
7.2.230.0130.00314.94
7.2.220.0030.00615.24
7.2.210.0030.00915.00
7.2.200.0090.00614.99
7.2.190.0110.00415.03
7.2.180.0060.01215.08
7.2.170.0160.00015.11
7.2.60.0000.00916.94
7.2.50.0040.01116.97
7.1.330.0090.00615.68
7.1.320.0060.00615.89
7.1.310.0030.00915.61
7.1.300.0120.00315.75
7.1.290.0100.00715.90
7.1.280.0120.00316.07
7.1.270.0130.00315.92
7.1.260.0080.00615.65
7.1.200.0090.00915.77
7.1.70.0000.00717.27
7.1.60.0100.00317.37
7.1.50.0240.01434.73
7.1.00.0000.03722.46
7.0.200.0100.00617.04
7.0.140.0000.07722.19
7.0.110.0770.06320.14
7.0.100.0800.07320.27
7.0.90.0730.08020.11
7.0.80.0730.08020.23
7.0.70.0770.09020.07
7.0.60.0800.07320.17
7.0.50.0800.08020.18
7.0.40.0030.08319.79
7.0.30.0130.07319.93
7.0.20.0130.06719.80
7.0.10.0030.08719.94
7.0.00.0100.08719.95
5.6.280.0030.07321.09
5.6.260.0170.07320.84
5.6.250.0070.08320.86
5.6.240.0070.08020.82
5.6.230.0030.08720.83
5.6.220.0070.08720.80
5.6.210.0230.06320.75
5.6.200.0070.08720.81
5.6.190.0030.05720.82
5.6.180.0130.07720.82
5.6.170.0130.07720.81
5.6.160.0100.07720.81
5.6.150.0230.06720.73
5.6.140.0030.08320.82
5.6.130.0000.08320.79
5.6.120.0070.05320.74
5.6.110.0130.08020.82
5.6.100.0070.07720.99
5.6.90.0200.07320.96
5.6.80.0130.07020.15
5.6.70.0200.06320.23
5.6.60.0200.06320.14
5.6.50.0200.06720.25
5.6.40.0070.07720.19
5.6.30.0030.06720.19
5.6.20.0000.08720.12
5.6.10.0130.07320.18
5.6.00.0170.06720.18
5.5.380.0070.08020.50
5.5.370.0030.08720.67
5.5.360.0100.08320.63
5.5.350.0030.06320.62
5.5.340.0000.08721.22
5.5.330.0100.08021.13
5.5.320.0070.08320.82
5.5.310.0030.08721.20
5.5.300.0030.08721.20
5.5.290.0100.08021.08
5.5.280.0100.08720.82
5.5.270.0100.08021.08
5.5.260.0070.08721.07
5.5.250.0130.08020.80
5.5.240.0000.06020.41
5.5.230.0070.08020.20
5.5.220.0100.07720.59
5.5.210.0030.08320.59
5.5.200.0070.08720.44
5.5.190.0100.08020.21
5.5.180.0000.08020.31
5.5.160.0030.09020.34
5.5.150.0070.08320.42
5.5.140.0130.07720.54
5.5.130.0200.07320.50
5.5.120.0070.08320.45
5.5.110.0070.07320.54
5.5.100.0170.06720.20
5.5.90.0070.07720.35
5.5.80.0030.08720.43
5.5.70.0030.08020.29
5.5.60.0070.07720.31
5.5.50.0130.06720.36
5.5.40.0100.08020.34
5.5.30.0130.07020.31
5.5.20.0100.07720.13
5.5.10.0070.08320.34
5.5.00.0100.07720.38
5.4.450.0070.08719.53
5.4.440.0100.08019.73
5.4.430.0070.06019.71
5.4.420.0130.06319.59
5.4.410.0100.07319.39
5.4.400.0030.06019.30
5.4.390.0100.07319.25
5.4.380.0130.06319.38
5.4.370.0030.07719.41
5.4.360.0100.07019.16
5.4.350.0130.07019.30
5.4.340.0070.08019.12
5.4.320.0100.07319.29
5.4.310.0100.06019.29
5.4.300.0130.07019.42
5.4.290.0030.07019.42
5.4.280.0100.06719.15
5.4.270.0100.07319.18
5.4.260.0030.08019.13
5.4.250.0070.05319.17
5.4.240.0070.06019.23
5.4.230.0070.07719.22
5.4.220.0070.08019.13
5.4.210.0130.04319.39
5.4.200.0100.07019.15
5.4.190.0030.07319.45
5.4.180.0000.08719.18
5.4.170.0070.07719.14
5.4.160.0100.07019.41
5.4.150.0130.06019.20
5.4.140.0100.07016.43
5.4.130.0070.07316.80
5.4.120.0070.05716.54
5.4.110.0030.04716.76
5.4.100.0000.04316.62
5.4.90.0100.07016.62
5.4.80.0030.07716.43
5.4.70.0070.05316.77
5.4.60.0030.05716.61
5.4.50.0030.06716.47
5.4.40.0070.07716.73
5.4.30.0100.06716.60
5.4.20.0170.05716.41
5.4.10.0100.03716.79
5.4.00.0130.06716.05
5.3.290.0030.05714.79
5.3.280.0000.08014.64
5.3.270.0070.04714.66
5.3.260.0030.08714.70
5.3.250.0030.07314.66
5.3.240.0130.07014.63
5.3.230.0070.08014.68
5.3.220.0030.07314.79
5.3.210.0070.07714.71
5.3.200.0030.08014.66
5.3.190.0030.08314.80
5.3.180.0000.08314.61
5.3.170.0030.08314.61
5.3.160.0100.06714.79
5.3.150.0100.07014.65
5.3.140.0130.06314.79
5.3.130.0070.07014.60
5.3.120.0000.04714.65
5.3.110.0030.07314.77
5.3.100.0070.07714.04
5.3.90.0030.08014.14
5.3.80.0100.07014.27
5.3.70.0130.06714.07
5.3.60.0000.07714.14
5.3.50.0100.06314.09
5.3.40.0130.06714.05
5.3.30.0030.08014.00
5.3.20.0100.06013.75
5.3.10.0030.06013.67
5.3.00.0070.07713.64
5.2.170.0100.06311.86
5.2.160.0100.05011.86
5.2.150.0000.04311.86
5.2.140.0100.06311.86
5.2.130.0030.07011.86
5.2.120.0030.06011.86
5.2.110.0030.04711.86
5.2.100.0100.03711.86
5.2.90.0100.05711.86
5.2.80.0100.05311.86
5.2.70.0070.06711.86
5.2.60.0070.06711.86
5.2.50.0000.05011.86
5.2.40.0030.06011.86
5.2.30.0030.03711.86
5.2.20.0030.03311.86
5.2.10.0130.05311.86
5.2.00.0070.05711.86
5.1.60.0030.05711.86
5.1.50.0030.05711.86
5.1.40.0070.05311.86
5.1.30.0000.06011.86
5.1.20.0030.05711.86
5.1.10.0100.05311.86
5.1.00.0070.05311.86
5.0.50.0000.03011.86
5.0.40.0030.04311.86
5.0.30.0070.06011.86
5.0.20.0000.04711.86
5.0.10.0030.04311.86
5.0.00.0000.06711.86
4.4.90.0030.03711.86
4.4.80.0070.01311.86
4.4.70.0070.03011.86
4.4.60.0070.03311.86
4.4.50.0070.03011.86
4.4.40.0030.05011.86
4.4.30.0000.03711.86
4.4.20.0070.03011.86
4.4.10.0030.03311.86
4.4.00.0030.05011.86
4.3.110.0000.03311.86
4.3.100.0000.03711.86
4.3.90.0000.03711.86
4.3.80.0030.05311.86
4.3.70.0000.03311.86
4.3.60.0000.03711.86
4.3.50.0000.03711.86
4.3.40.0000.05311.86
4.3.30.0070.02711.86
4.3.20.0000.04011.86
4.3.10.0070.03311.86
4.3.00.0000.03711.86

preferences:
46.57 ms | 401 KiB | 5 Q