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'); $doc = $dom->importNode($doc, true); $doc = $dom->appendChild($doc); $xpath = new DOMXPath($dom); $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.40.0080.00618.87
8.3.30.0070.00718.89
8.3.20.0000.00818.90
8.3.10.0000.00820.74
8.3.00.0080.00017.88
8.2.170.0030.01222.96
8.2.160.0100.01020.78
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00420.27
8.2.110.0100.00021.17
8.2.100.0060.00618.09
8.2.90.0060.00621.19
8.2.80.0040.00418.29
8.2.70.0030.00617.63
8.2.60.0040.00418.18
8.2.50.0000.00818.07
8.2.40.0040.00418.41
8.2.30.0050.00318.30
8.2.20.0040.00417.98
8.2.10.0050.00318.05
8.2.00.0040.00418.21
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0120.00022.74
8.1.230.0090.00321.44
8.1.220.0050.00318.15
8.1.210.0020.00719.34
8.1.200.0030.00617.60
8.1.190.0030.00717.91
8.1.180.0030.00518.10
8.1.170.0040.00419.24
8.1.160.0040.00419.03
8.1.150.0040.00418.95
8.1.140.0040.00417.85
8.1.130.0030.00318.27
8.1.120.0000.00717.89
8.1.110.0030.00617.77
8.1.100.0050.00217.66
8.1.90.0000.00717.89
8.1.80.0000.00717.60
8.1.70.0000.00817.57
8.1.60.0050.00317.80
8.1.50.0030.00517.65
8.1.40.0040.00417.93
8.1.30.0040.00417.75
8.1.20.0000.00817.84
8.1.10.0000.00817.77
8.1.00.0050.00217.85
8.0.300.0080.00020.35
8.0.290.0040.00416.88
8.0.280.0080.00018.57
8.0.270.0050.00217.47
8.0.260.0030.00316.95
8.0.250.0040.00417.12
8.0.240.0060.00317.27
8.0.230.0000.00717.29
8.0.220.0000.00717.30
8.0.210.0030.00317.00
8.0.200.0000.00617.34
8.0.190.0040.00417.15
8.0.180.0000.00717.03
8.0.170.0100.00017.30
8.0.160.0050.00317.19
8.0.150.0040.00417.21
8.0.140.0000.01317.02
8.0.130.0060.00013.54
8.0.120.0040.00417.21
8.0.110.0040.00417.16
8.0.100.0000.00717.12
8.0.90.0040.00417.05
8.0.80.0080.00917.11
8.0.70.0030.00517.11
8.0.60.0040.00417.02
8.0.50.0040.00417.26
8.0.30.0110.00817.32
8.0.20.0140.00417.09
8.0.10.0000.00717.30
8.0.00.0100.01516.98
7.4.330.0000.00513.16
7.4.320.0030.00316.78
7.4.300.0000.00716.94
7.4.290.0070.00016.87
7.4.280.0060.00316.99
7.4.270.0040.00416.85
7.4.260.0060.00013.62
7.4.250.0000.00816.79
7.4.240.0040.00416.77
7.4.230.0030.00316.73
7.4.220.0160.00616.95
7.4.210.0090.00816.89
7.4.200.0000.00716.83
7.4.190.0000.00816.70
7.4.160.0160.00016.66
7.4.150.0070.01016.77
7.4.140.0100.00916.84
7.4.130.0100.01016.74
7.4.120.0090.00816.84
7.4.110.0040.01416.86
7.4.100.0090.00916.72
7.4.90.0110.00616.91
7.4.80.0040.01419.39
7.4.70.0070.01116.60
7.4.60.0090.00916.86
7.4.50.0000.00916.72
7.4.40.0060.00616.79
7.4.30.0130.00316.84
7.4.10.0140.00316.96
7.4.00.0060.00915.91
7.3.330.0070.00013.19
7.3.320.0000.00613.20
7.3.310.0030.00316.45
7.3.300.0000.00716.58
7.3.290.0140.00916.55
7.3.280.0120.00616.60
7.3.270.0120.00916.73
7.3.260.0100.00816.81
7.3.250.0070.01216.69
7.3.240.0130.00316.57
7.3.230.0070.01016.51
7.3.210.0040.01316.71
7.3.200.0130.00316.53
7.3.190.0060.01316.74
7.3.180.0070.01416.52
7.3.170.0070.01017.00
7.3.160.0110.00816.59
7.3.130.0090.00616.52
7.3.120.0070.01015.82
7.3.110.0100.00616.67
7.3.100.0100.00716.80
7.3.90.0090.00916.62
7.3.80.0120.00316.50
7.3.70.0070.00716.70
7.3.60.0030.01216.63
7.3.50.0040.01216.68
7.3.40.0130.00716.52
7.3.30.0060.01216.42
7.3.20.0030.01018.33
7.3.10.0040.01117.67
7.3.00.0020.01317.70
7.2.330.0070.01116.82
7.2.320.0130.01016.85
7.2.310.0090.01216.96
7.2.300.0130.00316.83
7.2.290.0100.01016.88
7.2.260.0100.01016.59
7.2.250.0100.01016.68
7.2.240.0040.01516.65
7.2.230.0100.00316.93
7.2.220.0070.00416.58
7.2.210.0070.01116.73
7.2.200.0030.01016.65
7.2.190.0040.01116.72
7.2.180.0100.00616.60
7.2.170.0100.00616.69
7.2.160.0070.01016.79
7.2.150.0030.01418.50
7.2.140.0060.01018.61
7.2.130.0060.00617.80
7.2.120.0020.01017.72
7.2.110.0070.00517.66
7.2.100.0050.00817.78
7.2.90.0060.00717.60
7.2.80.0080.00617.74
7.2.70.0040.01117.72
7.2.60.0060.01017.48
7.2.50.0040.01117.70
7.2.40.0060.00917.76
7.2.30.0100.00517.85
7.2.20.0070.00517.77
7.2.10.0020.01217.57
7.2.00.0020.01118.52
7.1.330.0120.00617.52
7.1.320.0120.00017.70
7.1.310.0140.00317.52
7.1.300.0060.00617.73
7.1.290.0040.00817.56
7.1.280.0060.01317.64
7.1.270.0030.01017.66
7.1.260.0070.01017.47
7.1.250.0070.00816.63
7.1.240.0000.01317.55
7.1.230.0060.00917.60
7.1.220.0030.01217.48
7.1.210.0030.01517.41
7.1.200.0010.01116.73
7.1.190.0060.00317.48
7.1.180.0110.00417.42
7.1.170.0070.00717.84
7.1.160.0070.01017.46
7.1.150.0030.01717.62
7.1.140.0070.00317.73
7.1.130.0000.01217.58
7.1.120.0040.00717.54
7.1.110.0130.00317.77
7.1.100.0000.01317.82
7.1.90.0040.00817.65
7.1.80.0040.00817.58
7.1.70.0110.00117.39
7.1.60.0080.01018.49
7.1.50.0080.00917.28
7.1.40.0090.00017.49
7.1.30.0060.00917.77
7.1.20.0070.00717.70
7.1.10.0060.00917.59
7.1.00.0050.03820.11
7.0.330.0070.00417.50
7.0.320.0030.01117.22
7.0.310.0060.00617.28
7.0.300.0060.01317.31
7.0.290.0040.01117.47
7.0.280.0070.00717.25
7.0.270.0060.00617.32
7.0.260.0060.00917.18
7.0.250.0000.00917.39
7.0.240.0000.00917.58
7.0.230.0030.00717.27
7.0.220.0070.00717.18
7.0.210.0070.00717.42
7.0.200.0080.00717.08
7.0.190.0040.01217.20
7.0.180.0110.00417.31
7.0.170.0030.00917.43
7.0.160.0040.00417.12
7.0.150.0030.01317.33
7.0.140.0030.04219.84
7.0.130.0040.00817.20
7.0.120.0070.03919.76
7.0.110.0070.00717.17
7.0.100.0060.01017.23
7.0.90.0070.00717.41
7.0.80.0110.00417.38
7.0.70.0090.00317.31
7.0.60.0080.03718.58
7.0.50.0080.02717.64
7.0.40.0040.04416.58
7.0.30.0080.04816.60
7.0.20.0090.03616.65
7.0.10.0070.04516.51
7.0.00.0030.04316.59
5.6.400.0120.00616.25
5.6.390.0100.00316.16
5.6.380.0070.01016.14
5.6.370.0100.00716.06
5.6.360.0120.00316.25
5.6.350.0040.01516.32
5.6.340.0030.00916.30
5.6.330.0070.00716.29
5.6.320.0070.00416.32
5.6.310.0080.00416.30
5.6.300.0030.00616.07
5.6.290.0030.00616.29
5.6.280.0020.04218.65
5.6.270.0080.00416.22
5.6.260.0000.00916.01
5.6.250.0050.00516.16
5.6.240.0120.00316.09
5.6.230.0030.01016.34
5.6.220.0080.00816.24
5.6.210.0030.04618.41
5.6.200.0050.04417.29
5.6.190.0080.03817.20
5.6.180.0130.03817.19
5.6.170.0020.03317.30
5.6.160.0100.03717.40
5.6.150.0070.02617.21
5.6.140.0080.03717.18
5.6.130.0130.04017.28
5.6.120.0070.04517.30
5.6.110.0040.03917.34
5.6.100.0100.03517.22
5.6.90.0070.03717.30
5.6.80.0080.02116.95
5.6.70.0050.02516.93
5.6.60.0060.02916.88
5.6.50.0080.04116.96
5.6.40.0050.03016.94
5.6.30.0030.03016.93
5.6.20.0060.04616.98
5.6.10.0090.04017.00
5.6.00.0050.04516.93
5.5.380.0000.01516.18
5.5.370.0060.00316.14
5.5.360.0030.01016.50
5.5.350.0220.03218.43
5.5.340.0100.04017.20
5.5.330.0020.04917.11
5.5.320.0060.03417.15
5.5.310.0070.04017.01
5.5.300.0080.04417.06
5.5.290.0080.04317.11
5.5.280.0060.04517.11
5.5.270.0070.03017.18
5.5.260.0090.04117.18
5.5.250.0080.03117.08
5.5.240.0030.04016.81
5.5.230.0080.04116.64
5.5.220.0110.04016.71
5.5.210.0100.03316.83
5.5.200.0070.03116.83
5.5.190.0030.04716.84
5.5.180.0090.03416.88
5.5.170.0060.00916.05
5.5.160.0110.02316.75
5.5.150.0100.03716.85
5.5.140.0070.04316.87
5.5.130.0070.04216.71
5.5.120.0050.04716.81
5.5.110.0110.04116.79
5.5.100.0040.03716.71
5.5.90.0040.02616.61
5.5.80.0050.04016.82
5.5.70.0060.03516.81
5.5.60.0070.02916.68
5.5.50.0050.04216.64
5.5.40.0050.04216.85
5.5.30.0050.03616.67
5.5.20.0030.02816.65
5.5.10.0050.03516.68
5.5.00.0120.03016.67
5.4.450.0020.03316.21
5.4.440.0070.02816.26
5.4.430.0020.02716.07
5.4.420.0050.04316.17
5.4.410.0060.03815.90
5.4.400.0100.02016.07
5.4.390.0090.02216.01
5.4.380.0080.03315.90
5.4.370.0060.04715.96
5.4.360.0030.04315.93
5.4.350.0070.02715.90
5.4.340.0060.03115.98
5.4.330.0060.00312.76
5.4.320.0020.02715.90
5.4.310.0070.03815.90
5.4.300.0120.03216.04
5.4.290.0110.03615.91
5.4.280.0050.03316.03
5.4.270.0040.03715.90
5.4.260.0070.03815.91
5.4.250.0070.03015.93
5.4.240.0050.03316.03
5.4.230.0070.02216.15
5.4.220.0030.03716.00
5.4.210.0040.02516.03
5.4.200.0050.04015.88
5.4.190.0100.03815.96
5.4.180.0030.03616.05
5.4.170.0030.02315.90
5.4.160.0070.03915.86
5.4.150.0050.03516.00
5.4.140.0030.02914.77
5.4.130.0030.04214.60
5.4.120.0050.03314.50
5.4.110.0030.02914.67
5.4.100.0040.03314.70
5.4.90.0030.02814.63
5.4.80.0110.03414.66
5.4.70.0050.03414.63
5.4.60.0060.02114.57
5.4.50.0070.03714.73
5.4.40.0050.03614.67
5.4.30.0030.02714.63
5.4.20.0020.03114.67
5.4.10.0030.04014.67
5.4.00.0000.04714.28
5.3.290.0020.02514.13
5.3.280.0050.03414.06
5.3.270.0030.04514.00
5.3.260.0090.03713.96
5.3.250.0040.04413.92
5.3.240.0090.02314.01
5.3.230.0020.04614.00
5.3.220.0100.03813.97
5.3.210.0070.04213.96
5.3.200.0060.03513.99
5.3.190.0030.04214.00
5.3.180.0050.04014.07
5.3.170.0050.04314.05
5.3.160.0090.03714.07
5.3.150.0050.02314.00
5.3.140.0030.03114.01
5.3.130.0130.03314.00
5.3.120.0080.03313.87
5.3.110.0050.03613.95
5.3.100.0070.04213.72
5.3.90.0080.01813.68
5.3.80.0040.02513.63
5.3.70.0060.03613.59
5.3.60.0060.04313.64
5.3.50.0050.02913.55
5.3.40.0020.02413.56
5.3.30.0070.02213.56
5.3.20.0040.02713.53
5.3.10.0000.02513.43
5.3.00.0050.04013.32
5.2.170.0100.02711.32
5.2.160.0100.02311.20
5.2.150.0070.03311.28
5.2.140.0070.03011.27
5.2.130.0130.05011.37
5.2.120.0070.03711.38
5.2.110.0030.02711.27
5.2.100.0100.04311.25
5.2.90.0070.05311.21
5.2.80.0030.06711.26
5.2.70.0070.04311.39
5.2.60.0030.05011.18
5.2.50.0070.06711.15
5.2.40.0030.06311.26
5.2.30.0030.06711.10
5.2.20.0100.04311.13
5.2.10.0000.04310.93
5.2.00.0000.03310.93
5.1.60.0000.03010.02
5.1.50.0070.04010.24
5.1.40.0000.06010.13
5.1.30.0100.05310.52
5.1.20.0030.05310.53
5.1.10.0000.06010.25
5.1.00.0030.05710.23
5.0.50.0000.0478.59
5.0.40.0070.0408.61
5.0.30.0070.0638.38
5.0.20.0030.0308.34
5.0.10.0000.0378.49
5.0.00.0000.0638.38
4.4.90.0000.0407.93
4.4.80.0030.0277.93
4.4.70.0030.0307.93
4.4.60.0030.0307.93
4.4.50.0000.0307.93
4.4.40.0000.0537.93
4.4.30.0070.0337.93
4.4.20.0030.0337.93
4.4.10.0000.0377.93
4.4.00.0070.0377.93
4.3.110.0000.0377.93
4.3.100.0000.0207.93
4.3.90.0000.0307.93
4.3.80.0030.0537.93
4.3.70.0070.0277.93
4.3.60.0030.0337.93
4.3.50.0070.0337.93
4.3.40.0030.0477.93
4.3.30.0030.0377.93
4.3.20.0030.0277.93
4.3.10.0000.0337.93
4.3.00.0070.0237.93

preferences:
45.94 ms | 404 KiB | 6 Q