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($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.0120.00616.88
8.3.50.0250.00916.83
8.3.40.0040.01119.15
8.3.30.0070.00718.92
8.3.20.0000.00819.02
8.3.10.0030.00620.73
8.3.00.0040.00419.50
8.2.180.0160.00618.79
8.2.170.0090.00619.06
8.2.160.0110.00322.96
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0090.00019.73
8.2.110.0040.00721.54
8.2.100.0080.00418.09
8.2.90.0060.00321.24
8.2.80.0040.00418.05
8.2.70.0000.00817.87
8.2.60.0040.00418.05
8.2.50.0050.00518.07
8.2.40.0030.00518.38
8.2.30.0040.00418.29
8.2.20.0050.00317.93
8.2.10.0040.00418.09
8.2.00.0070.00317.98
8.1.280.0090.00925.92
8.1.270.0040.00424.66
8.1.260.0110.00726.35
8.1.250.0000.00728.09
8.1.240.0040.00721.07
8.1.230.0070.00421.39
8.1.220.0050.00318.16
8.1.210.0060.00319.33
8.1.200.0060.00617.73
8.1.190.0040.00417.79
8.1.180.0060.00318.10
8.1.170.0050.00319.14
8.1.160.0000.00719.19
8.1.150.0080.00018.93
8.1.140.0090.00017.81
8.1.130.0070.00018.15
8.1.120.0000.00717.81
8.1.110.0000.00717.88
8.1.100.0000.00717.70
8.1.90.0050.00317.64
8.1.80.0040.00417.77
8.1.70.0040.00417.62
8.1.60.0000.00817.91
8.1.50.0040.00417.86
8.1.40.0000.00817.68
8.1.30.0070.00017.84
8.1.20.0090.00317.96
8.1.10.0050.00317.87
8.1.00.0030.00617.71
8.0.300.0060.00320.26
8.0.290.0000.00717.00
8.0.280.0030.00318.75
8.0.270.0000.00717.50
8.0.260.0040.00417.11
8.0.250.0050.00317.37
8.0.240.0060.00617.27
8.0.230.0070.00017.32
8.0.220.0030.00317.28
8.0.210.0040.00417.31
8.0.200.0060.00017.14
8.0.190.0040.00417.06
8.0.180.0040.00417.12
8.0.170.0030.00617.21
8.0.160.0040.00417.09
8.0.150.0060.00317.00
8.0.140.0000.00717.26
8.0.130.0030.00313.59
8.0.120.0050.00317.21
8.0.110.0090.00017.24
8.0.100.0040.00417.16
8.0.90.0050.00217.27
8.0.80.0120.00617.18
8.0.70.0070.00017.09
8.0.60.0030.00517.08
8.0.50.0040.00417.25
8.0.30.0050.01417.32
8.0.20.0110.01217.33
8.0.10.0030.00517.23
8.0.00.0090.00816.90
7.4.330.0030.00313.31
7.4.320.0000.00616.94
7.4.300.0000.00616.84
7.4.290.0040.00416.91
7.4.280.0080.00016.93
7.4.270.0000.00816.88
7.4.260.0000.00613.66
7.4.250.0060.00316.86
7.4.240.0000.00716.75
7.4.230.0040.00416.68
7.4.220.0110.00717.00
7.4.210.0100.00716.86
7.4.200.0040.00416.67
7.4.190.0050.00216.85
7.4.160.0060.01016.72
7.4.150.0120.00616.70
7.4.140.0100.00916.77
7.4.130.0100.00716.72
7.4.120.0130.00716.79
7.4.110.0100.00716.69
7.4.100.0090.00916.66
7.4.90.0100.00716.79
7.4.80.0130.01316.79
7.4.70.0080.00816.71
7.4.60.0090.00916.73
7.4.50.0030.00616.73
7.4.40.0030.00816.82
7.4.30.0040.01216.61
7.4.00.0070.01015.25
7.3.330.0070.00013.37
7.3.320.0000.00613.45
7.3.310.0050.00216.70
7.3.300.0030.00316.59
7.3.290.0120.00816.67
7.3.280.0090.00916.57
7.3.270.0090.00916.72
7.3.260.0070.01016.51
7.3.250.0130.01016.67
7.3.240.0100.00616.43
7.3.230.0130.00316.75
7.3.210.0120.00616.57
7.3.200.0120.02019.39
7.3.190.0080.01116.84
7.3.180.0060.00916.68
7.3.170.0040.01416.73
7.3.160.0090.00616.54
7.3.120.0060.00915.07
7.2.330.0150.00316.71
7.2.320.0120.00616.59
7.2.310.0180.00717.13
7.2.300.0140.00416.75
7.2.290.0120.00617.02
7.2.00.0000.01219.70
7.1.100.0060.00918.48
7.1.70.0000.00817.42
7.1.60.0120.00919.40
7.1.50.0130.01017.02
7.1.00.0000.08022.67
7.0.200.0230.00714.68
7.0.140.0030.07322.25
7.0.120.0100.05722.34
7.0.110.0000.06022.23
7.0.100.0030.07322.35
7.0.90.0070.07022.24
7.0.80.0030.06022.23
7.0.70.0030.06022.27
7.0.60.0000.07722.13
7.0.50.0000.07722.38
7.0.40.0070.06722.29
7.0.30.0030.07322.32
7.0.20.0000.06322.18
7.0.10.0130.06322.29
7.0.00.0030.08022.29
5.6.280.0030.07321.09
5.6.260.0000.04721.20
5.6.250.0030.07721.23
5.6.240.0030.06321.06
5.6.230.0030.04321.19
5.6.220.0000.06721.14
5.6.210.0000.07321.07
5.6.200.0070.07321.19
5.6.190.0070.07021.01
5.6.180.0100.06321.14
5.6.170.0100.06721.18
5.6.160.0000.05321.00
5.6.150.0070.04721.19
5.6.140.0070.07321.04
5.6.130.0030.04321.11
5.6.120.0100.07021.16
5.6.110.0070.07321.15
5.6.100.0070.07021.17
5.6.90.0070.07021.17
5.6.80.0000.07320.45
5.6.70.0000.07320.58
5.6.60.0030.06720.64
5.6.50.0000.06020.54
5.6.40.0070.07020.55
5.6.30.0070.07020.45
5.6.20.0000.07320.43
5.6.10.0000.07020.30
5.6.00.0030.07020.51
5.5.380.0030.03717.76
5.5.370.0000.05717.74
5.5.360.0030.07317.87
5.5.350.0000.07317.74
5.5.340.0070.07018.36
5.5.330.0030.07018.07
5.5.320.0000.07318.36
5.5.310.0000.07318.05
5.5.300.0000.07018.55
5.5.290.0070.05318.28
5.5.280.0030.06318.05
5.5.270.0070.07018.35
5.5.260.0030.05317.92
5.5.250.0100.06718.10
5.5.240.0030.07017.92
5.5.230.0070.07017.76
5.5.220.0000.06317.55
5.5.210.0030.06717.57
5.5.200.0070.06317.38
5.5.190.0030.07017.67
5.5.180.0070.06717.28
5.5.160.0000.07017.28
5.5.150.0030.06717.72
5.5.140.0100.06017.70
5.5.130.0070.06317.34
5.5.120.0070.06717.73
5.5.110.0030.07017.27
5.5.100.0000.07017.58
5.5.90.0000.05017.63
5.5.80.0130.05017.28
5.5.70.0030.07317.27
5.5.60.0000.06017.30
5.5.50.0030.06017.41
5.5.40.0030.06017.39
5.5.30.0000.07017.29
5.5.20.0030.05717.52
5.5.10.0000.07317.26
5.5.00.0070.06717.62
5.4.450.0030.06719.80
5.4.440.0030.06719.60
5.4.430.0030.05319.46
5.4.420.0000.06719.56
5.4.410.0000.06719.47
5.4.400.0000.07019.48
5.4.390.0030.05719.30
5.4.380.0070.06019.39
5.4.370.0000.06719.39
5.4.360.0000.07319.23
5.4.350.0030.07019.30
5.4.340.0030.05719.43
5.4.320.0000.07319.18
5.4.310.0000.07019.38
5.4.300.0030.05719.22
5.4.290.0000.07319.46
5.4.280.0030.07019.27
5.4.270.0000.07019.22
5.4.260.0030.06719.25
5.4.250.0070.06319.22
5.4.240.0070.06019.13
5.4.230.0030.06719.39
5.4.220.0000.06019.18
5.4.210.0030.05319.47
5.4.200.0030.06019.37
5.4.190.0000.07019.42
5.4.180.0070.05019.21
5.4.170.0000.06719.21
5.4.160.0100.06019.27
5.4.150.0070.04719.25
5.4.140.0000.05716.80
5.4.130.0030.05016.41
5.4.120.0030.06316.70
5.4.110.0030.06716.61
5.4.100.0030.06316.58
5.4.90.0000.06716.76
5.4.80.0000.06716.44
5.4.70.0000.06716.48
5.4.60.0000.06316.41
5.4.50.0070.05316.63
5.4.40.0030.06316.62
5.4.30.0070.05316.55
5.4.20.0000.06716.59
5.4.10.0070.06316.43
5.4.00.0000.06715.88
5.3.290.0000.07314.73
5.3.280.0070.05714.86
5.3.270.0000.05714.74
5.3.260.0000.07314.67
5.3.250.0000.07014.71
5.3.240.0000.06714.71
5.3.230.0030.06714.86
5.3.220.0000.07014.62
5.3.210.0070.06714.80
5.3.200.0070.05714.82
5.3.190.0030.05714.80
5.3.180.0000.06714.78
5.3.170.0030.05014.73
5.3.160.0070.04714.66
5.3.150.0030.06314.67
5.3.140.0030.06314.64
5.3.130.0030.07014.61
5.3.120.0000.07314.65
5.3.110.0000.07314.76
5.3.100.0030.06314.14
5.3.90.0030.06314.17
5.3.80.0000.06714.07
5.3.70.0000.06714.15
5.3.60.0030.06014.24
5.3.50.0070.05014.05
5.3.40.0030.06314.06
5.3.30.0000.06713.92
5.3.20.0030.06313.83
5.3.10.0030.05713.89
5.3.00.0070.06313.73
5.2.170.0030.05711.46
5.2.160.0000.05711.35
5.2.150.0000.06011.39
5.2.140.0000.04711.36
5.2.130.0000.04711.20
5.2.120.0030.04011.27
5.2.110.0000.05711.33
5.2.100.0000.05711.27
5.2.90.0030.05311.19
5.2.80.0000.05711.34
5.2.70.0000.05711.33
5.2.60.0030.04311.24
5.2.50.0070.05011.23
5.2.40.0070.05011.11
5.2.30.0030.05311.14
5.2.20.0000.04711.12
5.2.10.0070.04311.16
5.2.00.0030.04710.86
5.1.60.0030.04310.12
5.1.50.0000.04310.29
5.1.40.0000.04710.11
5.1.30.0030.04710.63
5.1.20.0030.04010.52
5.1.10.0030.04710.28
5.1.00.0030.04710.47
5.0.50.0000.0409.75
5.0.40.0000.0379.75
5.0.30.0070.0539.75
5.0.20.0000.0309.75
5.0.10.0070.0339.75
5.0.00.0000.0479.75
4.4.90.0030.0239.75
4.4.80.0000.0309.75
4.4.70.0000.0339.75
4.4.60.0070.0279.75
4.4.50.0000.0279.75
4.4.40.0000.0479.75
4.4.30.0000.0309.75
4.4.20.0000.0339.75
4.4.10.0000.0339.75
4.4.00.0000.0479.75
4.3.110.0030.0309.75
4.3.100.0000.0239.75
4.3.90.0030.0279.75
4.3.80.0000.0479.75
4.3.70.0030.0279.75
4.3.60.0030.0279.75
4.3.50.0000.0309.75
4.3.40.0000.0479.75
4.3.30.0000.0339.75
4.3.20.0000.0239.75
4.3.10.0000.0209.75
4.3.00.0000.0209.75

preferences:
40.4 ms | 401 KiB | 5 Q