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"]'); vr_dump($res1->item); 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.70.0110.00718.80
8.3.60.0110.00418.93
8.3.50.0080.01222.16
8.3.40.0040.01119.34
8.3.30.0090.00919.15
8.3.20.0090.00019.02
8.3.10.0040.01120.96
8.3.00.0080.00318.00
8.2.180.0130.01017.13
8.2.170.0120.00922.96
8.2.160.0120.00322.54
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0180.00026.16
8.2.120.0040.00420.14
8.2.110.0060.00321.56
8.2.100.0120.00518.22
8.2.90.0040.00419.20
8.2.80.0000.00818.18
8.2.70.0030.00617.72
8.2.60.0130.00018.04
8.2.50.0090.00018.07
8.2.40.0030.00618.41
8.2.30.0000.00820.07
8.2.20.0030.00517.93
8.2.10.0000.00818.18
8.2.00.0030.00518.11
8.1.280.0070.01125.92
8.1.270.0030.01423.99
8.1.260.0080.00026.35
8.1.250.0000.01728.09
8.1.240.0110.00722.84
8.1.230.0050.00521.21
8.1.220.0080.00018.77
8.1.210.0040.00419.22
8.1.200.0040.00417.60
8.1.190.0000.00817.64
8.1.180.0040.00418.10
8.1.170.0030.00519.07
8.1.160.0050.00319.20
8.1.150.0070.00018.88
8.1.140.0040.00417.71
8.1.130.0020.00518.11
8.1.120.0040.00417.62
8.1.110.0040.00417.64
8.1.100.0040.00417.63
8.1.90.0000.00917.83
8.1.80.0000.00717.87
8.1.70.0000.00717.79
8.1.60.0000.00817.96
8.1.50.0040.00417.90
8.1.40.0000.00817.93
8.1.30.0070.00018.08
8.1.20.0030.00617.91
8.1.10.0000.00817.94
8.1.00.0040.00417.91
8.0.300.0000.00820.22
8.0.290.0040.00417.13
8.0.280.0050.00218.72
8.0.270.0050.00317.37
8.0.260.0000.00719.04
8.0.250.0000.00717.41
8.0.240.0060.00317.41
8.0.230.0040.00417.39
8.0.220.0000.00717.30
8.0.210.0040.00417.20
8.0.200.0000.00617.31
8.0.190.0050.00217.36
8.0.180.0080.00017.26
8.0.170.0000.00917.27
8.0.160.0050.00317.27
8.0.150.0000.00917.04
8.0.140.0030.00517.06
8.0.130.0000.00513.73
8.0.120.0030.00517.17
8.0.110.0030.00617.13
8.0.100.0080.00017.30
8.0.90.0070.00017.37
8.0.80.0060.01017.30
8.0.70.0000.00817.30
8.0.60.0040.00417.10
8.0.50.0040.00417.20
8.0.30.0120.00817.27
8.0.20.0060.01217.47
8.0.10.0040.00417.21
8.0.00.0070.01317.09
7.4.330.0050.00014.97
7.4.320.0000.00716.73
7.4.300.0000.00617.01
7.4.290.0070.00016.73
7.4.280.0000.00916.93
7.4.270.0040.00416.89
7.4.260.0050.00013.68
7.4.250.0040.00416.93
7.4.240.0030.00517.00
7.4.230.0040.00416.98
7.4.220.0120.00616.89
7.4.210.0090.00916.89
7.4.200.0030.00316.80
7.4.190.0070.00016.81
7.4.160.0140.00316.73
7.4.150.0030.01517.40
7.4.140.0070.01317.27
7.4.130.0060.01216.85
7.4.120.0080.01016.99
7.4.110.0120.00616.92
7.4.100.0060.01216.82
7.4.90.0120.01216.66
7.4.80.0130.00919.03
7.4.70.0160.00616.86
7.4.60.0120.00616.70
7.4.50.0000.00816.78
7.4.40.0070.00722.27
7.4.30.0080.01216.86
7.4.00.0070.00715.04
7.3.330.0000.00513.58
7.3.320.0030.00313.51
7.3.310.0040.00416.74
7.3.300.0070.00016.65
7.3.290.0060.00916.53
7.3.280.0070.00816.63
7.3.270.0070.01017.40
7.3.260.0090.01118.24
7.3.250.0110.00916.76
7.3.240.0100.01416.79
7.3.230.0060.01216.81
7.3.210.0060.01216.60
7.3.200.0110.00519.39
7.3.190.0070.01816.54
7.3.180.0090.00616.72
7.3.170.0180.00416.58
7.3.160.0040.01416.88
7.3.120.0100.00615.11
7.2.330.0030.01517.09
7.2.320.0080.01217.02
7.2.310.0150.00616.94
7.2.300.0130.00617.07
7.2.290.0060.01316.57
7.2.60.0000.01717.05
7.2.00.0070.00719.59
7.1.200.0030.00816.03
7.1.100.0040.00818.28
7.1.70.0070.00417.32
7.1.60.0060.01619.40
7.1.50.0100.01417.12
7.1.00.0000.06322.61
7.0.200.0220.00316.80
7.0.140.0070.07322.27
7.0.70.0130.07721.79
7.0.60.0030.04321.90
7.0.50.0000.08322.25
7.0.40.0030.08720.13
7.0.30.0070.08320.30
7.0.20.0000.07720.26
7.0.10.0030.08020.30
7.0.00.0100.05020.12
5.6.280.0070.07021.10
5.6.220.0070.06720.64
5.6.210.0030.06720.88
5.6.200.0070.04721.18
5.6.190.0070.07321.33
5.6.180.0070.08021.19
5.6.170.0100.07721.23
5.6.160.0030.09021.20
5.6.150.0030.06021.20
5.6.140.0070.08321.17
5.6.130.0100.05021.13
5.6.120.0100.08321.14
5.6.110.0030.08321.11
5.6.100.0070.06721.20
5.6.90.0070.08321.29
5.6.80.0100.06020.62
5.6.70.0030.07020.64
5.6.60.0070.04320.68
5.6.50.0070.07720.71
5.6.40.0030.08320.59
5.6.30.0100.07720.59
5.6.20.0130.07020.55
5.6.10.0070.07720.49
5.6.00.0070.07020.51
5.5.360.0070.08320.45
5.5.350.0030.08720.49
5.5.340.0170.07320.83
5.5.330.0070.08321.01
5.5.320.0030.08321.08
5.5.310.0030.08720.94
5.5.300.0070.05721.09
5.5.290.0030.04720.95
5.5.280.0070.07021.00
5.5.270.0000.08320.94
5.5.260.0070.07321.09
5.5.250.0070.05720.72
5.5.240.0070.05720.49
5.5.230.0070.06720.40
5.5.220.0000.06020.45
5.5.210.0030.05020.20
5.5.200.0070.06020.43
5.5.190.0130.06320.39
5.5.180.0030.07720.26
5.5.160.0070.07720.17
5.5.150.0130.07320.35
5.5.140.0030.08020.26
5.5.130.0030.07720.36
5.5.120.0070.07320.29
5.5.110.0070.07720.28
5.5.100.0100.07320.20
5.5.90.0070.07720.25
5.5.80.0070.07320.32
5.5.70.0030.06720.29
5.5.60.0030.05720.21
5.5.50.0070.06720.32
5.5.40.0030.06720.28
5.5.30.0030.08320.18
5.5.20.0070.07020.28
5.5.10.0000.07720.28
5.5.00.0030.08320.15
5.4.450.0170.07019.36
5.4.440.0070.04019.58
5.4.430.0070.05319.76
5.4.420.0000.07719.57
5.4.410.0100.05019.44
5.4.400.0000.07719.26
5.4.390.0100.05319.25
5.4.380.0070.07319.27
5.4.370.0070.05019.24
5.4.360.0170.06719.16
5.4.350.0070.05719.27
5.4.340.0070.04319.29
5.4.320.0100.06319.25
5.4.310.0030.07719.24
5.4.300.0070.05319.25
5.4.290.0130.06019.19
5.4.280.0100.07018.99
5.4.270.0000.07719.00
5.4.260.0130.06319.19
5.4.250.0070.08018.99
5.4.240.0000.06319.26
5.4.230.0000.08019.19
5.4.220.0070.06019.19
5.4.210.0030.07319.24
5.4.200.0270.05319.09
5.4.190.0030.06019.01
5.4.180.0030.07719.43
5.4.170.0130.05718.98
5.4.160.0100.07019.00
5.4.150.0070.07719.07
5.4.140.0070.07016.52
5.4.130.0030.07716.49
5.4.120.0030.06016.52
5.4.110.0030.07716.59
5.4.100.0030.06016.60
5.4.90.0100.07316.53
5.4.80.0030.05016.63
5.4.70.0030.05016.46
5.4.60.0100.06716.41
5.4.50.0070.07016.48
5.4.40.0030.05716.52
5.4.30.0070.07016.58
5.4.20.0100.03716.57
5.4.10.0070.04316.50
5.4.00.0000.07315.88
5.3.290.0000.08714.84
5.3.280.0000.05314.70
5.3.270.0070.07714.79
5.3.260.0070.07314.82
5.3.250.0030.05314.70
5.3.240.0030.06714.70
5.3.230.0130.06014.75
5.3.220.0030.05314.79
5.3.210.0130.06714.77
5.3.200.0000.08314.75
5.3.190.0030.06314.73
5.3.180.0070.06314.70
5.3.170.0000.04714.70
5.3.160.0030.07714.80
5.3.150.0070.07014.70
5.3.140.0030.07014.71
5.3.130.0030.07714.70
5.3.120.0100.05314.70
5.3.110.0070.06314.77
5.3.100.0070.07014.70
5.3.90.0030.07314.70
5.3.80.0100.04314.70
5.3.70.0030.08014.70
5.3.60.0000.08014.70
5.3.50.0070.03314.70
5.3.40.0100.04714.70
5.3.30.0000.03714.70
5.3.20.0100.04714.70
5.3.10.0030.06714.70
5.3.00.0000.07014.70
5.2.170.0000.06314.70
5.2.160.0000.05314.70
5.2.150.0030.03714.70
5.2.140.0070.03714.70
5.2.130.0030.05714.70
5.2.120.0100.05314.70
5.2.110.0000.04314.70
5.2.100.0000.06014.70
5.2.90.0070.04714.70
5.2.80.0030.05314.70
5.2.70.0000.06314.70
5.2.60.0030.06714.70
5.2.50.0030.04314.70
5.2.40.0000.05714.70
5.2.30.0000.05014.70
5.2.20.0000.05314.70
5.2.10.0000.05314.70
5.2.00.0000.06014.70
5.1.60.0100.03314.70
5.1.50.0070.04714.70
5.1.40.0030.05014.70
5.1.30.0030.05314.70
5.1.20.0030.05714.70
5.1.10.0070.05314.70
5.1.00.0030.04014.70
5.0.50.0070.03314.70
5.0.40.0070.04314.70
5.0.30.0030.06014.70
5.0.20.0000.03014.70
5.0.10.0030.04314.70
5.0.00.0030.04014.70
4.4.90.0000.03014.70
4.4.80.0000.03014.70
4.4.70.0030.03714.70
4.4.60.0000.03314.70
4.4.50.0030.02714.70
4.4.40.0000.04714.70
4.4.30.0030.03714.70
4.4.20.0030.01714.70
4.4.10.0030.03714.70
4.4.00.0000.05314.70
4.3.110.0030.04014.70
4.3.100.0000.03314.70
4.3.90.0030.03314.70
4.3.80.0030.05314.70
4.3.70.0030.03014.70
4.3.60.0000.03314.70
4.3.50.0070.03014.70
4.3.40.0030.05014.70
4.3.30.0000.03714.70
4.3.20.0000.03714.70
4.3.10.0130.02014.70
4.3.00.0000.03314.70

preferences:
50.69 ms | 401 KiB | 5 Q