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.0110.00716.63
8.3.50.0130.00317.52
8.3.40.0140.00018.82
8.3.30.0070.00718.93
8.3.20.0030.00518.99
8.3.10.0000.00820.70
8.3.00.0080.00417.71
8.2.180.0120.00917.00
8.2.170.0140.00022.96
8.2.160.0110.00422.76
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00420.27
8.2.110.0040.00821.61
8.2.100.0040.00818.28
8.2.90.0000.01021.32
8.2.80.0030.00518.05
8.2.70.0090.00017.75
8.2.60.0080.00018.18
8.2.50.0060.00318.07
8.2.40.0050.00318.59
8.2.30.0040.00418.41
8.2.20.0000.00818.00
8.2.10.0070.00418.01
8.2.00.0100.00018.03
8.1.280.0060.00925.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0040.00722.59
8.1.230.0130.00021.23
8.1.220.0040.00418.13
8.1.210.0000.00819.22
8.1.200.0030.00617.63
8.1.190.0030.00618.03
8.1.180.0060.00318.10
8.1.170.0060.00319.22
8.1.160.0000.00719.22
8.1.150.0060.00319.04
8.1.140.0050.00317.85
8.1.130.0030.00318.03
8.1.120.0000.00817.65
8.1.110.0000.00817.79
8.1.100.0050.00217.80
8.1.90.0040.00417.67
8.1.80.0060.00317.86
8.1.70.0050.00317.58
8.1.60.0000.00817.72
8.1.50.0040.00417.86
8.1.40.0020.00517.66
8.1.30.0000.00817.84
8.1.20.0030.00718.06
8.1.10.0070.00017.74
8.1.00.0050.00317.66
8.0.300.0000.00720.29
8.0.290.0060.00316.88
8.0.280.0040.00418.78
8.0.270.0000.00717.54
8.0.260.0000.00817.12
8.0.250.0000.00717.15
8.0.240.0030.00617.32
8.0.230.0030.00517.29
8.0.220.0030.00317.09
8.0.210.0000.00717.23
8.0.200.0000.00617.09
8.0.190.0070.00017.35
8.0.180.0000.00717.27
8.0.170.0060.00317.27
8.0.160.0050.00317.23
8.0.150.0040.00417.22
8.0.140.0040.00417.23
8.0.130.0000.00513.48
8.0.120.0070.00017.21
8.0.110.0040.00417.32
8.0.100.0040.00417.02
8.0.90.0050.00317.11
8.0.80.0090.01217.19
8.0.70.0040.00417.09
8.0.60.0030.00517.33
8.0.50.0000.00717.05
8.0.30.0080.01117.37
8.0.20.0060.01317.38
8.0.10.0030.00517.40
8.0.00.0130.00517.05
7.4.330.0000.00613.35
7.4.320.0000.00716.83
7.4.300.0030.00316.84
7.4.290.0070.00016.72
7.4.280.0060.00316.97
7.4.270.0040.00416.85
7.4.260.0050.00013.51
7.4.250.0000.00816.70
7.4.240.0070.00016.86
7.4.230.0000.00716.73
7.4.220.0060.01516.72
7.4.210.0090.00716.90
7.4.200.0040.00416.81
7.4.190.0000.00717.00
7.4.160.0110.01116.58
7.4.150.0130.00716.82
7.4.140.0100.01516.85
7.4.130.0140.00616.69
7.4.120.0100.00716.83
7.4.110.0160.00316.82
7.4.100.0090.00916.84
7.4.90.0080.01616.90
7.4.80.0140.00616.72
7.4.70.0060.01016.70
7.4.60.0100.00616.85
7.4.50.0050.00016.84
7.4.40.0040.00716.78
7.4.30.0070.01016.92
7.4.00.0090.00314.81
7.3.330.0030.00313.45
7.3.320.0000.00513.20
7.3.310.0030.00316.67
7.3.300.0030.00316.51
7.3.290.0130.00716.65
7.3.280.0060.01116.55
7.3.270.0030.01416.75
7.3.260.0160.00516.73
7.3.250.0040.01616.65
7.3.240.0080.01116.70
7.3.230.0150.00616.76
7.3.210.0130.00316.70
7.3.200.0170.00319.39
7.3.190.0030.01616.49
7.3.180.0130.00316.58
7.3.170.0090.01216.79
7.3.160.0060.00916.70
7.3.120.0060.00915.10
7.3.10.0000.01416.76
7.3.00.0000.01316.72
7.2.330.0140.01116.59
7.2.320.0130.00416.78
7.2.310.0130.01017.10
7.2.300.0110.00516.54
7.2.290.0120.00616.69
7.2.130.0120.00316.95
7.2.120.0100.00317.07
7.2.110.0000.01016.92
7.2.100.0110.00316.92
7.2.90.0110.00416.71
7.2.80.0030.01417.05
7.2.70.0040.00816.88
7.2.60.0090.00617.03
7.2.50.0030.01016.96
7.2.40.0000.01717.00
7.2.30.0040.01116.91
7.2.20.0090.00616.79
7.2.10.0100.00716.79
7.2.00.0040.01317.94
7.1.250.0070.00716.04
7.1.100.0060.00318.47
7.1.70.0000.00817.44
7.1.60.0110.01419.40
7.1.50.0060.01516.88
7.1.00.0030.04722.59
7.0.200.0250.00315.06
7.0.140.0100.08322.22
7.0.120.0000.07722.27
7.0.60.0070.04720.06
7.0.50.0170.07717.88
7.0.40.0030.05318.00
7.0.30.0030.08717.92
7.0.20.0030.08717.88
7.0.10.0030.07317.95
7.0.00.0000.08317.85
5.6.280.0070.07020.96
5.6.210.0070.04020.80
5.6.200.0100.06018.38
5.6.190.0030.05718.43
5.6.180.0030.04318.37
5.6.170.0170.06718.33
5.6.160.0030.08318.30
5.6.150.0130.07318.35
5.6.140.0100.05318.38
5.6.130.0030.05718.42
5.6.120.0030.06718.35
5.6.110.0030.08018.27
5.6.100.0030.06318.38
5.6.90.0100.08318.41
5.6.80.0030.08017.79
5.6.70.0130.07317.78
5.6.60.0070.07317.67
5.6.50.0100.07017.79
5.6.40.0100.06317.66
5.6.30.0170.06317.74
5.6.20.0030.07317.73
5.6.10.0030.07317.75
5.6.00.0100.08017.68
5.5.350.0300.04020.63
5.5.340.0130.07318.18
5.5.330.0070.04318.13
5.5.320.0100.04318.15
5.5.310.0030.04718.17
5.5.300.0100.08018.17
5.5.290.0030.05718.22
5.5.280.0070.08018.23
5.5.270.0070.08318.21
5.5.260.0070.07718.12
5.5.250.0130.07718.00
5.5.240.0100.04717.56
5.5.230.0200.06717.55
5.5.220.0100.07017.55
5.5.210.0070.05317.55
5.5.200.0030.06317.50
5.5.190.0000.05717.48
5.5.180.0170.04317.54
5.5.160.0000.08717.50
5.5.150.0100.07717.48
5.5.140.0000.08017.53
5.5.130.0070.07717.54
5.5.120.0070.05017.50
5.5.110.0070.07017.51
5.5.100.0100.07717.43
5.5.90.0070.08017.39
5.5.80.0170.07017.39
5.5.70.0000.05017.37
5.5.60.0070.04017.37
5.5.50.0030.08017.42
5.5.40.0030.05017.38
5.5.30.0100.07017.36
5.5.20.0170.07017.41
5.5.10.0070.07717.34
5.5.00.0130.07317.36
5.4.450.0100.07719.59
5.4.440.0100.07719.60
5.4.430.0000.08319.58
5.4.420.0100.07319.55
5.4.410.0130.07719.43
5.4.400.0070.08019.15
5.4.390.0070.08019.37
5.4.380.0070.08019.21
5.4.370.0030.07719.37
5.4.360.0100.05719.05
5.4.350.0200.06019.05
5.4.340.0070.07019.34
5.4.320.0100.07319.25
5.4.310.0030.07319.19
5.4.300.0130.06319.25
5.4.290.0070.07319.14
5.4.280.0070.06319.28
5.4.270.0070.04019.25
5.4.260.0100.06719.34
5.4.250.0130.07019.23
5.4.240.0070.08019.04
5.4.230.0030.04719.34
5.4.220.0100.07719.22
5.4.210.0070.06719.11
5.4.200.0030.07719.13
5.4.190.0200.06719.30
5.4.180.0070.05019.22
5.4.170.0070.07719.36
5.4.160.0130.06319.21
5.4.150.0130.06319.05
5.4.140.0030.07716.59
5.4.130.0030.05316.64
5.4.120.0100.07316.63
5.4.110.0000.07716.56
5.4.100.0170.03716.55
5.4.90.0000.06316.57
5.4.80.0070.06016.49
5.4.70.0070.03316.45
5.4.60.0070.04716.55
5.4.50.0100.04016.50
5.4.40.0070.07316.58
5.4.30.0030.06316.59
5.4.20.0070.07016.56
5.4.10.0130.06716.54
5.4.00.0100.06016.05
5.3.290.0000.08714.71
5.3.280.0030.06014.84
5.3.270.0070.06314.82
5.3.260.0200.06714.64
5.3.250.0030.07714.80
5.3.240.0070.06014.74
5.3.230.0070.05014.76
5.3.220.0070.07714.68
5.3.210.0130.07314.73
5.3.200.0070.06714.69
5.3.190.0030.04314.61
5.3.180.0070.03714.68
5.3.170.0030.04014.58
5.3.160.0000.05014.66
5.3.150.0070.07014.71
5.3.140.0030.04014.69
5.3.130.0100.05314.57
5.3.120.0100.07714.70
5.3.110.0070.08014.63
5.3.100.0030.08014.17
5.3.90.0070.04314.11
5.3.80.0030.05714.22
5.3.70.0000.05014.13
5.3.60.0030.05013.98
5.3.50.0030.04314.10
5.3.40.0100.04314.04
5.3.30.0030.06714.01
5.3.20.0100.07313.85
5.3.10.0100.03713.84
5.3.00.0030.08013.75
5.2.170.0130.05711.32
5.2.160.0030.06311.32
5.2.150.0100.05711.27
5.2.140.0030.04311.30
5.2.130.0070.06011.23
5.2.120.0030.03711.24
5.2.110.0070.06311.14
5.2.100.0100.06011.14
5.2.90.0100.03311.22
5.2.80.0070.06311.24
5.2.70.0100.05311.25
5.2.60.0070.06011.31
5.2.50.0070.06311.16
5.2.40.0000.04311.17
5.2.30.0030.04711.02
5.2.20.0070.03011.20
5.2.10.0070.05311.05
5.2.00.0000.05010.88
5.1.60.0070.05310.15
5.1.50.0000.05310.12
5.1.40.0000.05010.15
5.1.30.0000.03010.51
5.1.20.0070.05310.51
5.1.10.0070.05010.25
5.1.00.0000.06010.25
5.0.50.0070.0238.77
5.0.40.0000.0278.45
5.0.30.0000.0378.54
5.0.20.0070.0438.40
5.0.10.0070.0408.21
5.0.00.0070.0438.52
4.4.90.0030.0307.70
4.4.80.0070.0237.70
4.4.70.0100.0307.70
4.4.60.0000.0337.70
4.4.50.0030.0377.70
4.4.40.0000.0577.70
4.4.30.0030.0377.70
4.4.20.0030.0377.70
4.4.10.0070.0177.70
4.4.00.0000.0477.70
4.3.110.0030.0177.70
4.3.100.0000.0177.70
4.3.90.0070.0337.70
4.3.80.0030.0437.70
4.3.70.0030.0207.70
4.3.60.0000.0277.70
4.3.50.0000.0277.70
4.3.40.0030.0537.70
4.3.30.0030.0337.70
4.3.20.0030.0307.70
4.3.10.0030.0277.70
4.3.00.0000.0207.70

preferences:
39.29 ms | 401 KiB | 5 Q