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"]'); foreach($res1 as $res){ var_dump($res); } // var_dump($res1); $item = $res1; ?>

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.0160.00418.65
8.3.50.0160.00321.33
8.3.40.0140.00419.01
8.3.30.0080.00818.82
8.3.20.0030.00519.03
8.3.10.0050.00320.62
8.3.00.0060.00319.50
8.2.180.0110.00717.25
8.2.170.0130.00322.96
8.2.160.0070.00722.80
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00520.27
8.2.110.0070.00322.77
8.2.100.0100.00318.28
8.2.90.0000.00818.16
8.2.80.0030.00617.97
8.2.70.0110.00017.88
8.2.60.0000.00818.18
8.2.50.0030.00518.07
8.2.40.0080.00018.59
8.2.30.0080.00020.18
8.2.20.0070.00018.09
8.2.10.0080.00018.05
8.2.00.0050.00318.15
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00324.23
8.1.230.0090.00321.26
8.1.220.0070.00318.16
8.1.210.0030.00619.21
8.1.200.0000.00917.73
8.1.190.0080.00017.90
8.1.180.0000.00818.10
8.1.170.0030.00519.15
8.1.160.0050.00319.19
8.1.150.0040.00419.09
8.1.140.0040.00417.62
8.1.130.0040.00418.27
8.1.120.0030.00517.91
8.1.110.0070.00017.70
8.1.100.0040.00417.87
8.1.90.0040.00417.66
8.1.80.0000.00717.86
8.1.70.0070.00017.63
8.1.60.0030.00617.83
8.1.50.0080.00017.89
8.1.40.0040.00417.68
8.1.30.0030.00618.08
8.1.20.0000.00817.87
8.1.10.0000.00817.93
8.1.00.0000.00917.95
8.0.300.0060.00320.28
8.0.290.0050.00217.00
8.0.280.0050.00218.78
8.0.270.0040.00417.59
8.0.260.0030.00517.15
8.0.250.0040.00417.31
8.0.240.0040.00417.29
8.0.230.0000.00717.38
8.0.220.0100.00017.29
8.0.210.0000.00717.30
8.0.200.0000.00717.33
8.0.190.0000.00717.28
8.0.180.0070.00017.09
8.0.170.0000.00917.27
8.0.160.0040.00417.10
8.0.150.0050.00317.30
8.0.140.0060.00217.26
8.0.130.0000.00613.73
8.0.120.0000.00717.23
8.0.110.0000.00817.30
8.0.100.0050.00317.17
8.0.90.0030.00517.12
8.0.80.0120.00617.12
8.0.70.0050.00217.13
8.0.60.0040.00417.27
8.0.50.0040.00417.12
8.0.30.0170.00617.24
8.0.20.0160.00517.42
8.0.10.0000.00817.31
8.0.00.0120.01417.00
7.4.330.0050.00015.22
7.4.320.0000.00616.91
7.4.300.0030.00316.86
7.4.290.0000.01016.91
7.4.280.0030.00616.89
7.4.270.0000.00716.89
7.4.260.0000.00613.53
7.4.250.0030.00516.79
7.4.240.0000.00716.89
7.4.230.0040.00416.74
7.4.220.0060.02017.02
7.4.210.0080.00816.90
7.4.200.0080.00016.86
7.4.190.0000.00716.86
7.4.160.0080.01016.96
7.4.150.0100.00717.40
7.4.140.0110.00717.35
7.4.130.0090.01316.84
7.4.120.0110.00816.86
7.4.110.0060.01516.74
7.4.100.0030.01616.74
7.4.90.0060.01216.72
7.4.80.0100.00719.03
7.4.70.0060.00916.66
7.4.60.0080.01016.77
7.4.50.0030.00616.64
7.4.40.0080.01122.27
7.4.30.0080.00816.91
7.4.00.0090.00915.16
7.3.330.0000.00713.44
7.3.320.0060.00013.58
7.3.310.0030.00316.63
7.3.300.0000.00816.55
7.3.290.0150.00616.63
7.3.280.0120.00616.63
7.3.270.0090.00917.40
7.3.260.0170.00818.24
7.3.250.0110.01116.85
7.3.240.0030.02016.82
7.3.230.0150.00416.79
7.3.210.0150.00516.62
7.3.200.0070.01019.39
7.3.190.0240.00016.97
7.3.180.0120.00916.54
7.3.170.0090.00916.84
7.3.160.0160.00316.95
7.3.120.0070.01114.84
7.2.330.0050.01816.87
7.2.320.0070.01816.88
7.2.310.0080.01517.18
7.2.300.0100.01016.86
7.2.290.0040.01316.70
7.2.00.0070.00719.37
7.1.100.0000.01118.40
7.1.70.0030.00717.34
7.1.60.0100.01319.40
7.1.50.0070.01416.75
7.1.00.0000.06322.60
7.0.200.0270.00016.82
7.0.140.0030.06722.21
7.0.60.0100.06321.93
7.0.50.0070.07322.31
7.0.40.0030.08320.22
7.0.30.0000.09020.20
7.0.20.0070.06320.22
7.0.10.0030.08020.35
7.0.00.0070.08020.11
5.6.280.0030.07321.22
5.6.210.0030.07720.71
5.6.200.0030.08321.21
5.6.190.0100.06021.31
5.6.180.0030.08721.20
5.6.170.0070.08021.29
5.6.160.0000.08021.18
5.6.150.0000.07721.16
5.6.140.0170.08021.21
5.6.130.0000.08021.18
5.6.120.0030.06321.11
5.6.110.0000.06321.12
5.6.100.0070.08321.17
5.6.90.0100.07721.15
5.6.80.0070.07320.55
5.6.70.0000.07320.47
5.6.60.0030.04320.66
5.6.50.0070.03720.63
5.6.40.0030.04020.64
5.6.30.0070.03720.54
5.6.20.0000.07720.59
5.6.10.0130.06720.52
5.6.00.0030.08020.52
5.5.350.0070.08320.62
5.5.340.0000.09021.03
5.5.330.0130.07020.96
5.5.320.0030.08321.17
5.5.310.0030.08320.95
5.5.300.0000.06320.82
5.5.290.0030.06720.97
5.5.280.0000.08321.17
5.5.270.0100.07320.92
5.5.260.0070.04721.01
5.5.250.0070.08020.72
5.5.240.0070.07720.52
5.5.230.0100.03720.34
5.5.220.0030.03720.51
5.5.210.0000.06320.18
5.5.200.0070.04020.49
5.5.190.0070.07320.35
5.5.180.0030.08320.45
5.5.160.0030.06720.35
5.5.150.0070.07320.31
5.5.140.0030.08020.27
5.5.130.0030.08020.52
5.5.120.0000.08720.27
5.5.110.0070.08020.27
5.5.100.0030.06720.23
5.5.90.0030.08020.34
5.5.80.0070.07320.26
5.5.70.0030.08020.16
5.5.60.0030.04020.36
5.5.50.0000.07020.40
5.5.40.0100.07320.22
5.5.30.0000.08720.35
5.5.20.0030.07720.38
5.5.10.0070.07020.25
5.5.00.0100.07020.33
5.4.450.0070.08019.34
5.4.440.0100.07319.49
5.4.430.0130.07019.32
5.4.420.0070.07319.59
5.4.410.0100.07019.35
5.4.400.0100.07019.02
5.4.390.0070.06019.16
5.4.380.0030.04319.22
5.4.370.0000.04319.26
5.4.360.0030.04019.04
5.4.350.0070.07319.12
5.4.340.0070.06019.25
5.4.320.0030.07719.23
5.4.310.0030.07319.07
5.4.300.0030.07019.38
5.4.290.0070.07319.21
5.4.280.0000.06319.26
5.4.270.0030.07319.14
5.4.260.0030.07319.15
5.4.250.0030.07319.27
5.4.240.0030.07319.22
5.4.230.0000.07319.13
5.4.220.0070.06019.07
5.4.210.0070.07319.37
5.4.200.0030.07019.24
5.4.190.0000.07719.07
5.4.180.0030.07319.37
5.4.170.0070.07319.20
5.4.160.0070.07019.14
5.4.150.0000.05719.21
5.4.140.0000.07016.60
5.4.130.0030.05016.56
5.4.120.0030.07016.33
5.4.110.0000.06716.59
5.4.100.0100.07016.52
5.4.90.0100.06716.58
5.4.80.0030.07316.48
5.4.70.0100.06716.60
5.4.60.0000.05016.57
5.4.50.0070.07016.57
5.4.40.0100.06716.57
5.4.30.0100.06716.47
5.4.20.0100.06016.58
5.4.10.0070.07016.47
5.4.00.0070.06716.04
5.3.290.0030.07714.78
5.3.280.0030.06714.70
5.3.270.0030.06014.79
5.3.260.0030.04714.77
5.3.250.0030.04314.61
5.3.240.0000.04014.80
5.3.230.0100.07014.66
5.3.220.0070.06714.66
5.3.210.0030.06014.70
5.3.200.0070.07014.67
5.3.190.0030.07314.69
5.3.180.0100.06314.65
5.3.170.0070.07714.66
5.3.160.0030.06714.65
5.3.150.0070.07314.61
5.3.140.0070.06714.72
5.3.130.0030.06314.78
5.3.120.0030.08014.54
5.3.110.0100.07014.64
5.3.100.0000.07714.19
5.3.90.0070.07314.01
5.3.80.0030.07314.16
5.3.70.0100.06714.20
5.3.60.0030.07014.21
5.3.50.0070.06714.04
5.3.40.0000.07014.14
5.3.30.0070.07313.91
5.3.20.0030.04013.78
5.3.10.0100.03313.79
5.3.00.0030.07313.81
5.2.170.0070.06011.41
5.2.160.0000.05711.41
5.2.150.0030.06711.41
5.2.140.0030.03711.41
5.2.130.0030.05311.41
5.2.120.0030.05711.41
5.2.110.0000.03011.41
5.2.100.0000.06311.41
5.2.90.0030.05711.41
5.2.80.0070.05711.41
5.2.70.0030.06311.41
5.2.60.0070.06011.41
5.2.50.0070.06311.41
5.2.40.0100.04011.41
5.2.30.0030.03711.41
5.2.20.0030.06011.41
5.2.10.0070.05011.41
5.2.00.0030.06011.41
5.1.60.0070.04711.41
5.1.50.0030.04311.41
5.1.40.0030.05711.41
5.1.30.0070.05011.41
5.1.20.0070.05011.41
5.1.10.0030.05711.41
5.1.00.0000.05711.41
5.0.50.0000.05011.41
5.0.40.0000.04311.41
5.0.30.0030.06711.41
5.0.20.0030.04011.41
5.0.10.0030.03711.41
5.0.00.0030.04311.41
4.4.90.0030.03311.41
4.4.80.0030.03011.41
4.4.70.0030.02711.41
4.4.60.0000.03311.41
4.4.50.0000.03311.41
4.4.40.0030.04311.41
4.4.30.0000.03711.41
4.4.20.0070.02711.41
4.4.10.0000.03711.41
4.4.00.0000.05011.41
4.3.110.0030.03311.41
4.3.100.0000.03311.41
4.3.90.0000.03311.41
4.3.80.0030.05311.41
4.3.70.0000.03711.41
4.3.60.0030.03311.41
4.3.50.0000.03711.41
4.3.40.0070.04311.41
4.3.30.0000.03011.41
4.3.20.0030.03011.41
4.3.10.0030.03011.41
4.3.00.0000.03711.41

preferences:
43.89 ms | 401 KiB | 5 Q