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"]'); 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.0090.00617.00
8.3.50.0060.01117.44
8.3.40.0180.00319.01
8.3.30.0040.01118.68
8.3.20.0150.00019.03
8.3.10.0080.00020.66
8.3.00.0000.00917.75
8.2.180.0110.01117.00
8.2.170.0120.00322.96
8.2.160.0070.01022.58
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.62
8.2.110.0070.01021.41
8.2.100.0080.00418.02
8.2.90.0060.00319.64
8.2.80.0060.00319.77
8.2.70.0040.00417.88
8.2.60.0000.00918.18
8.2.50.0030.00618.07
8.2.40.0000.00818.47
8.2.30.0050.00218.46
8.2.20.0050.00318.06
8.2.10.0000.00718.02
8.2.00.0030.00918.02
8.1.280.0060.00925.92
8.1.270.0040.00424.66
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0070.00422.70
8.1.230.0080.00421.41
8.1.220.0050.00318.02
8.1.210.0030.00519.42
8.1.200.0030.00717.73
8.1.190.0050.00317.90
8.1.180.0040.00418.10
8.1.170.0000.00819.20
8.1.160.0000.00719.07
8.1.150.0020.00518.95
8.1.140.0040.00417.76
8.1.130.0030.00318.10
8.1.120.0070.00017.60
8.1.110.0070.00017.77
8.1.100.0000.00817.82
8.1.90.0050.00217.77
8.1.80.0040.00417.58
8.1.70.0030.00317.53
8.1.60.0000.00818.01
8.1.50.0000.00817.81
8.1.40.0030.00717.89
8.1.30.0090.00018.05
8.1.20.0040.00417.85
8.1.10.0030.00617.98
8.1.00.0050.00317.86
8.0.300.0040.00420.29
8.0.290.0040.00417.13
8.0.280.0000.00718.74
8.0.270.0050.00217.48
8.0.260.0000.00717.17
8.0.250.0000.00817.17
8.0.240.0080.00017.02
8.0.230.0000.00717.32
8.0.220.0000.00817.22
8.0.210.0030.00417.25
8.0.200.0030.00317.26
8.0.190.0000.00717.12
8.0.180.0070.00017.21
8.0.170.0040.00417.30
8.0.160.0030.00417.28
8.0.150.0030.00617.17
8.0.140.0090.00017.08
8.0.130.0060.00013.70
8.0.120.0040.00417.18
8.0.110.0000.00717.05
8.0.100.0070.00017.26
8.0.90.0040.00417.07
8.0.80.0040.01117.18
8.0.70.0080.00017.16
8.0.60.0050.00317.14
8.0.50.0050.00217.19
8.0.30.0110.01117.54
8.0.20.0090.01017.38
8.0.10.0070.00017.15
8.0.00.0080.01117.04
7.4.330.0020.00213.30
7.4.320.0040.00416.84
7.4.300.0030.00316.84
7.4.290.0040.00416.85
7.4.280.0000.01116.85
7.4.270.0030.00616.63
7.4.260.0030.00313.63
7.4.250.0030.00516.93
7.4.240.0080.00016.95
7.4.230.0070.00016.79
7.4.220.0090.01616.91
7.4.210.0100.00616.86
7.4.200.0000.00716.71
7.4.190.0000.00716.98
7.4.160.0140.00616.71
7.4.150.0060.01316.74
7.4.140.0150.01116.71
7.4.130.0090.00916.86
7.4.120.0080.00916.75
7.4.110.0150.00616.85
7.4.100.0130.01016.90
7.4.90.0120.00916.71
7.4.80.0090.00916.72
7.4.70.0110.00616.64
7.4.60.0070.01016.95
7.4.50.0000.00916.61
7.4.40.0060.00616.64
7.4.30.0000.01716.58
7.4.00.0050.01315.05
7.3.330.0080.00013.21
7.3.320.0050.00013.32
7.3.310.0000.00716.46
7.3.300.0070.00016.43
7.3.290.0100.01016.52
7.3.280.0100.00516.65
7.3.270.0140.00616.71
7.3.260.0100.00916.69
7.3.250.0080.01016.65
7.3.240.0060.01216.88
7.3.230.0200.00316.52
7.3.210.0050.01116.83
7.3.200.0100.01319.39
7.3.190.0100.00716.74
7.3.180.0080.00816.69
7.3.170.0100.00717.01
7.3.160.0090.00616.47
7.3.120.0080.00815.10
7.3.110.0000.01714.88
7.3.100.0000.01114.62
7.3.90.0000.00915.14
7.3.80.0000.01415.18
7.3.70.0040.01114.97
7.3.60.0070.00714.95
7.3.50.0100.00714.98
7.3.40.0040.01414.92
7.3.30.0100.00714.78
7.3.20.0080.00416.89
7.3.10.0070.00416.71
7.3.00.0030.01016.62
7.2.330.0030.01416.79
7.2.320.0040.01516.80
7.2.310.0060.01616.66
7.2.300.0100.00716.99
7.2.290.0110.00716.69
7.2.250.0140.00314.95
7.2.240.0060.01115.07
7.2.230.0060.00915.20
7.2.220.0080.00415.19
7.2.210.0120.00615.24
7.2.200.0000.01514.93
7.2.190.0080.00315.07
7.2.180.0030.01415.17
7.2.170.0090.00915.23
7.2.00.0070.01019.26
7.1.330.0070.00715.86
7.1.320.0030.00616.01
7.1.310.0080.00615.92
7.1.300.0030.00615.98
7.1.290.0060.01015.62
7.1.280.0120.00615.97
7.1.270.0070.01015.76
7.1.260.0030.01015.95
7.1.100.0030.00618.48
7.1.70.0030.00517.36
7.1.60.0070.01719.40
7.1.50.0060.01616.80
7.1.00.0030.03722.59
7.0.200.0630.01014.91
7.0.140.0000.07722.22
7.0.120.0070.06722.21
7.0.60.0170.07720.14
7.0.50.0070.08018.08
7.0.40.0100.05318.00
7.0.30.0100.07017.95
7.0.20.0100.05717.87
7.0.10.0030.04017.95
7.0.00.0030.04317.94
5.6.280.0000.07721.25
5.6.210.0070.05020.66
5.6.200.0100.07718.35
5.6.190.0100.07018.41
5.6.180.0100.05718.32
5.6.170.0130.04318.38
5.6.160.0070.03718.40
5.6.150.0000.04318.38
5.6.140.0030.04018.40
5.6.130.0070.04018.32
5.6.120.0070.03718.39
5.6.110.0130.03018.37
5.6.100.0000.04318.29
5.6.90.0030.04018.32
5.6.80.0000.04317.73
5.6.70.0030.03717.78
5.6.60.0000.04017.75
5.6.50.0130.02717.77
5.6.40.0000.04717.70
5.6.30.0000.04017.76
5.6.20.0000.04017.63
5.6.10.0030.04017.68
5.6.00.0030.03717.69
5.5.350.0100.05020.62
5.5.340.0070.08318.15
5.5.330.0030.05018.14
5.5.320.0100.07018.13
5.5.310.0070.07718.17
5.5.300.0100.04718.18
5.5.290.0030.04018.13
5.5.280.0070.03718.10
5.5.270.0100.03318.16
5.5.260.0070.03718.18
5.5.250.0000.04318.03
5.5.240.0070.03317.60
5.5.230.0030.03717.53
5.5.220.0100.03017.61
5.5.210.0030.04317.48
5.5.200.0030.04017.58
5.5.190.0030.06017.55
5.5.180.0000.04017.53
5.5.160.0000.04017.55
5.5.150.0100.03017.50
5.5.140.0100.05317.53
5.5.130.0030.05317.53
5.5.120.0070.07717.52
5.5.110.0070.07017.49
5.5.100.0100.06717.44
5.5.90.0070.07717.42
5.5.80.0170.06017.38
5.5.70.0170.07317.35
5.5.60.0070.07017.31
5.5.50.0070.08017.44
5.5.40.0100.07017.42
5.5.30.0130.07317.31
5.5.20.0100.07317.44
5.5.10.0130.07317.38
5.5.00.0030.03717.44
5.4.450.0100.03319.54
5.4.440.0000.05719.52
5.4.430.0000.04019.59
5.4.420.0100.03319.54
5.4.410.0070.03319.38
5.4.400.0000.04019.28
5.4.390.0070.03319.36
5.4.380.0030.03719.21
5.4.370.0030.03719.35
5.4.360.0030.03719.21
5.4.350.0000.04019.23
5.4.340.0030.03719.28
5.4.320.0100.04019.32
5.4.310.0070.04019.19
5.4.300.0030.06319.27
5.4.290.0070.07319.35
5.4.280.0070.07319.14
5.4.270.0130.05719.14
5.4.260.0100.07719.18
5.4.250.0130.06019.13
5.4.240.0100.03719.21
5.4.230.0130.06319.17
5.4.220.0030.05319.14
5.4.210.0070.06719.20
5.4.200.0030.04318.97
5.4.190.0100.07719.04
5.4.180.0030.07719.13
5.4.170.0070.03719.23
5.4.160.0000.04019.19
5.4.150.0070.08019.21
5.4.140.0170.06316.52
5.4.130.0100.07316.55
5.4.120.0170.06316.56
5.4.110.0070.08016.53
5.4.100.0070.04316.50
5.4.90.0070.07316.55
5.4.80.0000.07716.51
5.4.70.0070.04016.48
5.4.60.0100.06316.50
5.4.50.0070.07716.55
5.4.40.0100.07016.55
5.4.30.0170.06016.56
5.4.20.0070.04316.50
5.4.10.0100.03716.52
5.4.00.0030.07316.01
5.3.290.0000.04014.84
5.3.280.0070.08014.79
5.3.270.0030.04014.82
5.3.260.0070.08314.62
5.3.250.0070.07714.71
5.3.240.0070.07714.60
5.3.230.0070.08014.64
5.3.220.0070.04714.71
5.3.210.0100.06014.72
5.3.200.0100.06314.77
5.3.190.0100.07714.70
5.3.180.0100.05314.79
5.3.170.0070.04714.76
5.3.160.0030.07314.76
5.3.150.0100.07014.61
5.3.140.0070.07314.57
5.3.130.0030.08314.76
5.3.120.0070.04714.71
5.3.110.0070.07314.59
5.3.100.0000.05314.15
5.3.90.0070.07314.04
5.3.80.0070.07314.21
5.3.70.0070.04314.01
5.3.60.0070.07014.17
5.3.50.0070.06013.95
5.3.40.0030.07714.07
5.3.30.0030.07314.04
5.3.20.0100.07313.82
5.3.10.0070.06313.75
5.3.00.0030.06313.73
5.2.170.0070.06311.32
5.2.160.0070.06011.29
5.2.150.0030.06311.28
5.2.140.0000.04011.20
5.2.130.0070.03311.22
5.2.120.0130.04011.26
5.2.110.0000.06311.23
5.2.100.0100.03311.25
5.2.90.0070.06011.09
5.2.80.0000.06711.14
5.2.70.0130.05011.09
5.2.60.0070.04311.19
5.2.50.0030.06711.17
5.2.40.0000.04311.05
5.2.30.0000.03711.13
5.2.20.0100.05311.02
5.2.10.0000.03711.05
5.2.00.0030.04010.99
5.1.60.0030.05310.24
5.1.50.0070.05310.19
5.1.40.0000.05310.17
5.1.30.0000.04310.53
5.1.20.0070.03010.41
5.1.10.0000.06010.33
5.1.00.0030.05310.25
5.0.50.0030.0478.99
5.0.40.0030.0478.99
5.0.30.0030.0578.99
5.0.20.0000.0508.99
5.0.10.0070.0238.99
5.0.00.0070.0308.99
4.4.90.0000.0378.99
4.4.80.0000.0238.99
4.4.70.0070.0238.99
4.4.60.0000.0378.99
4.4.50.0000.0238.99
4.4.40.0100.0438.99
4.4.30.0000.0338.99
4.4.20.0030.0338.99
4.4.10.0000.0378.99
4.4.00.0000.0638.99
4.3.110.0030.0338.99
4.3.100.0030.0308.99
4.3.90.0000.0338.99
4.3.80.0070.0208.99
4.3.70.0030.0178.99
4.3.60.0000.0378.99
4.3.50.0070.0308.99
4.3.40.0000.0338.99
4.3.30.0030.0308.99
4.3.20.0030.0278.99
4.3.10.0070.0338.99
4.3.00.0070.0308.99

preferences:
39.6 ms | 401 KiB | 5 Q