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> '; $sxe = simplexml_load_string($xml); $doc = dom_import_simplexml ($sxe); $dom = new DOMDocument('1.0'); $xpath = new DOMXPath($dom); $doc = $dom->importNode($doc, true); $doc = $dom->appendChild($doc); $res1 = $xpath->query('//root/item[@id="images"]/descendant::*[@handle = "kings-of-leon_poster_v02_webjpg"]'); var_dump($doc); $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.0140.00717.00
8.3.50.0020.01917.63
8.3.40.0090.00618.84
8.3.30.0120.00918.93
8.3.20.0080.00018.91
8.3.10.0060.00320.91
8.3.00.0090.00019.63
8.2.180.0060.01216.88
8.2.170.0160.00622.96
8.2.160.0110.00721.57
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00820.08
8.2.110.0100.00021.55
8.2.100.0090.00318.09
8.2.90.0050.00319.67
8.2.80.0000.01118.18
8.2.70.0060.00317.75
8.2.60.0100.00018.41
8.2.50.0080.00018.07
8.2.40.0040.00418.27
8.2.30.0050.00218.38
8.2.20.0090.00017.93
8.2.10.0040.00417.95
8.2.00.0030.00518.03
8.1.280.0150.00025.92
8.1.270.0060.01224.66
8.1.260.0120.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00820.85
8.1.230.0040.00821.27
8.1.220.0000.00918.16
8.1.210.0110.00319.14
8.1.200.0060.00317.73
8.1.190.0000.00817.77
8.1.180.0060.00318.10
8.1.170.0050.00519.21
8.1.160.0000.00819.19
8.1.150.0000.00719.05
8.1.140.0000.00817.62
8.1.130.0000.00718.30
8.1.120.0030.00517.73
8.1.110.0070.00017.88
8.1.100.0020.00517.64
8.1.90.0080.00017.85
8.1.80.0070.00017.82
8.1.70.0030.00317.66
8.1.60.0000.00917.97
8.1.50.0000.00817.72
8.1.40.0040.00417.92
8.1.30.0040.00418.04
8.1.20.0050.00517.85
8.1.10.0060.00317.77
8.1.00.0000.00817.86
8.0.300.0050.00320.14
8.0.290.0040.00417.00
8.0.280.0050.00318.70
8.0.270.0040.00417.51
8.0.260.0000.00717.15
8.0.250.0040.00417.11
8.0.240.0000.00817.13
8.0.230.0020.00517.16
8.0.220.0000.00717.21
8.0.210.0000.00717.01
8.0.200.0070.00017.34
8.0.190.0030.00617.07
8.0.180.0050.00317.24
8.0.170.0040.00417.29
8.0.160.0040.00317.07
8.0.150.0060.00317.04
8.0.140.0000.00717.08
8.0.130.0060.00013.49
8.0.120.0040.00417.20
8.0.110.0000.01017.16
8.0.100.0080.00017.25
8.0.90.0000.00817.16
8.0.80.0030.01317.15
8.0.70.0040.00417.15
8.0.60.0000.00717.03
8.0.50.0050.00317.08
8.0.30.0140.00717.46
8.0.20.0140.01417.38
8.0.10.0080.00017.34
8.0.00.0140.01017.07
7.4.330.0030.00313.31
7.4.320.0000.00716.66
7.4.300.0060.00016.86
7.4.290.0070.00016.85
7.4.280.0040.00416.98
7.4.270.0040.00416.77
7.4.260.0030.00313.64
7.4.250.0080.00016.83
7.4.240.0040.00416.89
7.4.230.0000.00816.76
7.4.220.0110.01516.73
7.4.210.0050.01116.86
7.4.200.0000.00717.02
7.4.190.0070.00016.69
7.4.160.0070.01016.84
7.4.150.0170.00316.73
7.4.140.0110.00716.88
7.4.130.0090.00916.84
7.4.120.0110.00716.72
7.4.110.0040.01416.68
7.4.100.0170.00716.84
7.4.90.0090.01516.75
7.4.80.0120.00616.49
7.4.70.0110.00816.60
7.4.60.0040.01416.70
7.4.50.0000.00916.73
7.4.40.0000.01516.62
7.4.30.0100.00816.81
7.4.00.0000.01315.00
7.3.330.0000.00613.32
7.3.320.0000.00513.50
7.3.310.0050.00216.64
7.3.300.0050.00316.50
7.3.290.0140.00016.61
7.3.280.0080.00816.57
7.3.270.0120.01416.75
7.3.260.0060.01516.65
7.3.250.0140.00616.86
7.3.240.0140.00716.69
7.3.230.0120.00616.53
7.3.210.0070.01016.73
7.3.200.0130.00319.39
7.3.190.0150.00616.57
7.3.180.0170.00616.62
7.3.170.0120.00916.91
7.3.160.0120.00616.87
7.3.120.0120.00315.17
7.2.330.0070.01317.01
7.2.320.0120.00616.83
7.2.310.0150.00816.85
7.2.300.0080.01216.87
7.2.290.0100.01316.86
7.2.80.0350.01116.60
7.2.60.0060.00917.00
7.2.00.0030.00919.56
7.1.200.0040.00815.90
7.1.100.0030.00917.98
7.1.70.0000.00917.31
7.1.60.0060.01019.40
7.1.50.0080.01134.93
7.1.00.0000.08022.57
7.0.200.0040.00416.71
7.0.140.0170.06322.21
7.0.120.0130.06322.24
7.0.60.0000.08720.21
7.0.50.0000.04317.90
7.0.40.0030.04017.98
7.0.30.0030.04017.88
7.0.20.0070.03717.97
7.0.10.0000.04317.84
7.0.00.0070.03717.89
5.6.280.0030.07321.05
5.6.210.0100.06020.80
5.6.200.0000.04718.38
5.6.190.0100.03318.37
5.6.180.0030.04018.40
5.6.170.0070.04018.38
5.6.160.0100.03718.38
5.6.150.0000.04318.35
5.6.140.0000.04018.40
5.6.130.0000.04318.30
5.6.120.0030.04018.40
5.6.110.0000.04318.39
5.6.100.0030.04018.30
5.6.90.0100.03318.29
5.6.80.0100.03317.66
5.6.70.0100.03317.72
5.6.60.0030.03717.72
5.6.50.0130.06317.76
5.6.40.0170.03717.73
5.6.30.0030.07017.64
5.6.20.0030.04017.73
5.6.10.0070.07717.73
5.6.00.0130.05717.72
5.5.350.0200.03020.63
5.5.340.0030.04018.23
5.5.330.0030.04318.18
5.5.320.0030.03718.19
5.5.310.0000.04318.18
5.5.300.0030.04018.18
5.5.290.0070.04018.14
5.5.280.0030.04018.16
5.5.270.0030.04018.14
5.5.260.0000.04718.17
5.5.250.0000.04017.96
5.5.240.0000.04017.57
5.5.230.0030.03717.52
5.5.220.0130.05017.60
5.5.210.0030.08317.61
5.5.200.0070.07717.54
5.5.190.0000.05717.52
5.5.180.0030.08017.53
5.5.160.0030.04017.52
5.5.150.0070.05317.42
5.5.140.0070.06017.55
5.5.130.0030.04017.43
5.5.120.0100.07017.45
5.5.110.0030.08017.47
5.5.100.0130.07017.40
5.5.90.0070.04017.39
5.5.80.0170.07017.40
5.5.70.0100.06717.35
5.5.60.0070.04317.42
5.5.50.0070.05717.49
5.5.40.0000.06317.38
5.5.30.0000.04317.41
5.5.20.0130.07317.43
5.5.10.0030.06317.40
5.5.00.0170.07017.40
5.4.450.0070.03719.57
5.4.440.0030.03719.31
5.4.430.0000.04019.31
5.4.420.0030.03719.49
5.4.410.0100.04019.43
5.4.400.0030.03719.24
5.4.390.0030.03719.28
5.4.380.0100.05019.37
5.4.370.0030.08319.22
5.4.360.0030.07719.35
5.4.350.0070.08019.05
5.4.340.0100.03719.05
5.4.320.0100.07719.36
5.4.310.0030.05719.35
5.4.300.0030.05719.28
5.4.290.0100.06318.98
5.4.280.0170.06319.19
5.4.270.0130.05719.21
5.4.260.0030.06019.37
5.4.250.0070.07719.23
5.4.240.0100.07719.41
5.4.230.0030.04719.27
5.4.220.0070.04319.36
5.4.210.0070.08019.23
5.4.200.0000.08319.27
5.4.190.0000.04719.31
5.4.180.0100.06719.23
5.4.170.0070.06319.05
5.4.160.0130.06719.21
5.4.150.0100.06719.23
5.4.140.0000.06016.57
5.4.130.0200.03016.54
5.4.120.0070.06316.53
5.4.110.0030.05716.55
5.4.100.0070.07716.53
5.4.90.0030.08016.55
5.4.80.0030.05316.49
5.4.70.0100.06316.54
5.4.60.0070.03716.50
5.4.50.0070.05716.50
5.4.40.0070.03716.50
5.4.30.0030.03716.47
5.4.20.0130.06716.50
5.4.10.0100.06316.55
5.4.00.0030.08015.95
5.3.290.0100.07314.85
5.3.280.0030.08314.81
5.3.270.0130.07314.77
5.3.260.0070.07714.71
5.3.250.0030.07714.73
5.3.240.0030.05014.84
5.3.230.0070.08014.76
5.3.220.0070.04014.57
5.3.210.0170.06714.61
5.3.200.0030.06314.62
5.3.190.0100.07014.73
5.3.180.0000.05714.59
5.3.170.0070.04014.69
5.3.160.0100.03314.81
5.3.150.0070.05014.61
5.3.140.0000.04314.70
5.3.130.0070.08014.79
5.3.120.0070.07314.77
5.3.110.0100.07314.74
5.3.100.0070.05714.06
5.3.90.0030.06714.18
5.3.80.0100.07714.25
5.3.70.0000.08014.17
5.3.60.0030.05714.02
5.3.50.0030.05314.09
5.3.40.0070.03313.93
5.3.30.0000.04014.09
5.3.20.0100.03013.68
5.3.10.0070.07013.77
5.3.00.0130.06013.83
5.2.170.0030.03011.18
5.2.160.0000.03011.26
5.2.150.0100.03011.29
5.2.140.0070.03311.27
5.2.130.0000.06311.38
5.2.120.0030.04711.21
5.2.110.0070.04711.25
5.2.100.0030.04311.22
5.2.90.0000.03311.35
5.2.80.0070.06711.39
5.2.70.0070.05711.22
5.2.60.0100.05711.19
5.2.50.0070.06011.19
5.2.40.0100.03311.30
5.2.30.0070.03011.09
5.2.20.0030.04011.12
5.2.10.0030.03711.13
5.2.00.0100.02310.87
5.1.60.0100.04710.25
5.1.50.0030.03010.20
5.1.40.0030.03710.23
5.1.30.0030.02710.51
5.1.20.0030.06010.54
5.1.10.0070.05310.12
5.1.00.0000.05710.23
5.0.50.0000.0338.79
5.0.40.0000.0278.66
5.0.30.0030.0308.47
5.0.20.0100.0408.44
5.0.10.0030.0478.39
5.0.00.0070.0678.37
4.4.90.0030.0177.86
4.4.80.0030.0207.86
4.4.70.0030.0337.86
4.4.60.0030.0307.86
4.4.50.0030.0237.86
4.4.40.0070.0337.86
4.4.30.0030.0207.86
4.4.20.0070.0337.86
4.4.10.0070.0337.86
4.4.00.0030.0337.86
4.3.110.0000.0207.86
4.3.100.0000.0337.86
4.3.90.0000.0377.86
4.3.80.0100.0377.86
4.3.70.0000.0407.86
4.3.60.0070.0277.86
4.3.50.0000.0237.86
4.3.40.0070.0537.86
4.3.30.0030.0277.86
4.3.20.0000.0307.86
4.3.10.0000.0377.86
4.3.00.0030.0237.86

preferences:
50.73 ms | 401 KiB | 5 Q