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> '; $dom = new DOMDocument; $dom->loadXML($xml); //var_dump($dom); $xpath = new DOMXPath($dom); $res1 = $xpath->query('//root/item[@id="images"]/descendant::*[./@handle = "kings-of-leon_poster_v02_webjpg"]'); $test = $res1->item(0); var_dump($test); foreach($res1 as $res){ var_dump($res); } ?>

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.0060.01318.64
8.3.50.0160.00522.05
8.3.40.0150.00018.82
8.3.30.0150.00018.88
8.3.20.0050.00318.89
8.3.10.0030.00620.91
8.3.00.0030.00717.75
8.2.180.0160.00318.56
8.2.170.0090.00622.96
8.2.160.0070.00719.58
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0080.00020.27
8.2.110.0070.00321.57
8.2.100.0060.00618.41
8.2.90.0000.00919.42
8.2.80.0040.00417.97
8.2.70.0080.00317.84
8.2.60.0030.00518.05
8.2.50.0060.00318.18
8.2.40.0040.00419.72
8.2.30.0040.00420.30
8.2.20.0050.00317.96
8.2.10.0090.00018.05
8.2.00.0060.00318.14
8.1.280.0060.00925.92
8.1.270.0080.00023.99
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0040.00722.35
8.1.230.0080.00417.70
8.1.220.0030.00618.16
8.1.210.0050.00518.77
8.1.200.0000.00917.60
8.1.190.0040.00417.60
8.1.180.0030.00618.10
8.1.170.0060.00317.88
8.1.160.0000.00819.26
8.1.150.0040.00419.13
8.1.140.0030.00517.84
8.1.130.0040.00418.18
8.1.120.0040.00417.70
8.1.110.0080.00017.71
8.1.100.0000.00717.85
8.1.90.0060.00317.85
8.1.80.0080.00017.88
8.1.70.0040.00417.86
8.1.60.0030.00617.77
8.1.50.0080.00017.92
8.1.40.0040.00417.96
8.1.30.0000.00917.82
8.1.20.0040.00417.98
8.1.10.0040.00418.01
8.1.00.0000.00817.91
8.0.300.0050.00318.77
8.0.290.0040.00417.13
8.0.280.0000.00718.62
8.0.270.0050.00217.67
8.0.260.0030.00317.08
8.0.250.0040.00417.33
8.0.240.0030.00717.32
8.0.230.0060.00317.29
8.0.220.0070.00017.30
8.0.210.0040.00417.29
8.0.200.0040.00417.10
8.0.190.0000.00817.34
8.0.180.0050.00317.15
8.0.170.0060.00317.08
8.0.160.0040.00417.36
8.0.150.0040.00417.21
8.0.140.0040.00817.25
8.0.130.0030.00313.52
8.0.120.0030.00517.25
8.0.110.0000.00717.26
8.0.100.0020.00517.13
8.0.90.0080.00017.23
8.0.80.0060.00917.14
8.0.70.0030.00517.20
8.0.60.0000.00817.11
8.0.50.0000.00817.12
8.0.30.0110.01117.74
8.0.20.0130.00917.40
8.0.10.0040.00417.27
8.0.00.0130.00817.30
7.4.330.0050.00015.17
7.4.320.0060.00016.96
7.4.300.0000.00816.88
7.4.290.0070.00016.98
7.4.280.0050.00316.82
7.4.270.0080.00016.98
7.4.260.0000.00513.66
7.4.250.0030.00616.83
7.4.240.0030.00616.93
7.4.230.0040.00416.94
7.4.220.0040.01916.90
7.4.210.0090.00916.91
7.4.200.0040.00416.87
7.4.190.0050.00217.10
7.4.160.0180.00816.84
7.4.150.0150.00617.40
7.4.140.0110.00817.86
7.4.130.0160.01016.95
7.4.120.0080.01116.79
7.4.110.0090.00916.80
7.4.100.0160.00316.76
7.4.90.0110.00916.93
7.4.80.0090.00919.04
7.4.70.0040.01516.72
7.4.60.0090.01216.73
7.4.50.0090.00016.90
7.4.40.0000.01622.27
7.4.30.0080.00816.80
7.4.00.0040.01115.26
7.3.330.0060.00013.55
7.3.320.0030.00313.52
7.3.310.0040.00416.77
7.3.300.0070.00016.53
7.3.290.0110.00316.56
7.3.280.0110.00516.66
7.3.270.0090.01217.40
7.3.260.0140.00818.24
7.3.250.0120.01216.87
7.3.240.0140.00516.80
7.3.230.0120.01216.94
7.3.210.0100.00716.66
7.3.200.0170.00919.39
7.3.190.0130.00616.82
7.3.180.0070.01116.98
7.3.170.0130.00816.65
7.3.160.0130.00316.59
7.3.120.0070.01014.74
7.3.10.0030.01016.60
7.3.00.0090.00816.79
7.2.330.0040.01917.14
7.2.320.0060.01516.92
7.2.310.0120.01216.76
7.2.300.0090.00916.86
7.2.290.0040.01516.87
7.2.130.0090.00916.98
7.2.120.0100.00716.95
7.2.110.0070.00617.04
7.2.100.0070.00716.93
7.2.90.0090.00917.04
7.2.80.0060.01117.04
7.2.70.0070.00716.94
7.2.60.0070.00616.93
7.2.50.0120.00617.09
7.2.40.0090.00717.14
7.2.30.0070.01016.86
7.2.20.0080.00817.09
7.2.10.0120.00717.07
7.2.00.0110.00717.57
7.1.250.0080.00615.74
7.1.240.0090.00615.87
7.1.230.0050.00916.03
7.1.220.0060.00715.83
7.1.210.0080.00715.86
7.1.200.0040.00715.74
7.1.190.0080.00815.87
7.1.180.0050.01015.86
7.1.170.0080.00515.92
7.1.160.0060.00816.03
7.1.150.0020.01215.91
7.1.140.0050.00715.93
7.1.130.0070.00515.78
7.1.120.0060.00615.89
7.1.110.0030.00716.04
7.1.100.0040.01116.66
7.1.90.0070.00515.77
7.1.80.0050.00515.67
7.1.70.0050.00816.36
7.1.60.0060.01117.03
7.1.50.0090.00516.19
7.1.40.0060.00515.86
7.1.30.0070.00515.73
7.1.20.0080.00315.88
7.1.10.0040.00915.76
7.1.00.0030.01618.10
7.0.330.0000.01115.69
7.0.320.0050.00515.54
7.0.310.0070.00315.48
7.0.300.0110.00315.45
7.0.290.0080.00515.53
7.0.280.0050.00915.38
7.0.270.0050.00615.56
7.0.260.0070.00615.56
7.0.250.0040.00515.55
7.0.240.0070.00315.74
7.0.230.0090.00315.70
7.0.220.0030.00915.50
7.0.210.0080.00615.81
7.0.200.0060.00515.94
7.0.190.0050.00515.57
7.0.180.0110.00215.54
7.0.170.0040.00915.70
7.0.160.0030.00915.67
7.0.150.0040.00715.51
7.0.140.0010.03417.88
7.0.130.0040.00815.69
7.0.120.0060.00715.65
7.0.110.0050.00515.51
7.0.100.0030.00815.67
7.0.90.0060.00815.73
7.0.80.0010.00615.68
7.0.70.0100.00515.60
7.0.60.0040.01917.68
7.0.50.0020.02817.87
7.0.40.0050.01915.87
7.0.30.0070.02615.95
7.0.20.0060.02815.78
7.0.10.0050.03215.83
7.0.00.0030.03015.73
5.6.380.0090.00514.55
5.6.370.0030.01114.11
5.6.360.0110.00214.52
5.6.350.0140.00014.53
5.6.340.0050.00814.62
5.6.330.0000.01014.35
5.6.320.0040.00814.55
5.6.310.0000.01014.49
5.6.300.0070.00714.54
5.6.290.0070.00514.21
5.6.280.0090.02416.80
5.6.270.0040.00614.45
5.6.260.0100.00414.41
5.6.250.0080.00514.32
5.6.240.0070.00714.33
5.6.230.0080.00614.71
5.6.220.0030.00814.31
5.6.210.0030.03416.42
5.6.200.0060.02016.67
5.6.190.0030.02316.48
5.6.180.0020.03516.63
5.6.170.0040.02916.72
5.6.160.0070.02916.67
5.6.150.0030.01816.80
5.6.140.0050.02516.69
5.6.130.0070.01916.57
5.6.120.0040.01916.95
5.6.110.0050.02016.64
5.6.100.0030.02116.62
5.6.90.0040.02916.66
5.6.80.0070.03016.54
5.6.70.0030.02916.54
5.6.60.0020.02116.46
5.6.50.0050.03316.31
5.6.40.0020.02416.43
5.6.30.0070.02516.36
5.6.20.0050.01816.46
5.6.10.0060.03116.42
5.6.00.0080.02916.55
5.5.380.0050.00711.27
5.5.370.0050.00511.30
5.5.360.0040.00411.24
5.5.350.0020.03014.38
5.5.340.0060.01614.49
5.5.330.0020.02514.39
5.5.320.0030.02814.45
5.5.310.0050.03114.53
5.5.300.0040.01814.49
5.5.290.0060.01514.51
5.5.280.0060.01914.55
5.5.270.0030.02114.52
5.5.260.0050.01614.55
5.5.250.0020.02014.29
5.5.240.0020.03514.28
5.5.230.0030.02314.21
5.5.220.0080.02714.14
5.5.210.0060.02614.15
5.5.200.0080.02314.20
5.5.190.0020.03114.26
5.5.180.0050.02914.21
5.5.170.0020.00811.26
5.5.160.0050.02214.21
5.5.150.0040.02114.19
5.5.140.0050.02214.29
5.5.130.0060.02714.25
5.5.120.0040.02714.26
5.5.110.0070.02614.27
5.5.100.0040.03114.11
5.5.90.0040.02114.25
5.5.80.0060.01314.17
5.5.70.0020.02314.18
5.5.60.0020.02614.20
5.5.50.0010.02114.21
5.5.40.0030.01514.20
5.5.30.0060.02414.21
5.5.20.0020.03214.32
5.5.10.0040.01714.26
5.5.00.0060.01914.20
5.4.450.0040.02713.83
5.4.440.0020.02313.90
5.4.430.0060.02314.07
5.4.420.0050.01713.97
5.4.410.0060.01513.84
5.4.400.0030.03013.79
5.4.390.0030.01613.81
5.4.380.0040.02413.74
5.4.370.0040.02613.79
5.4.360.0030.02813.77
5.4.350.0020.02013.85
5.4.340.0010.02213.78
5.4.330.0030.00810.97
5.4.320.0030.01813.81
5.4.310.0040.02213.82
5.4.300.0050.02213.82
5.4.290.0060.02813.86
5.4.280.0030.02013.68
5.4.270.0030.02913.75
5.4.260.0050.02613.71
5.4.250.0050.02513.76
5.4.240.0010.01713.82
5.4.230.0060.01613.90
5.4.220.0030.02213.71
5.4.210.0050.01413.73
5.4.200.0050.01513.78
5.4.190.0010.02013.94
5.4.180.0060.02413.70
5.4.170.0050.01413.77
5.4.160.0000.02413.73
5.4.150.0020.01713.77
5.4.140.0080.01812.94
5.4.130.0060.01312.96
5.4.120.0000.01812.92
5.4.110.0040.02412.89
5.4.100.0060.01812.98
5.4.90.0020.01812.88
5.4.80.0060.01312.88
5.4.70.0030.02312.93
5.4.60.0040.01512.90
5.4.50.0060.01512.83
5.4.40.0020.01712.84
5.4.30.0020.02612.86
5.4.20.0050.01612.88
5.4.10.0030.01912.86
5.4.00.0020.01512.74
5.3.290.0040.02712.19
5.3.280.0030.01712.15
5.3.270.0020.01512.23
5.3.260.0020.01512.18
5.3.250.0060.02612.16
5.3.240.0020.02112.06
5.3.230.0050.01412.18
5.3.220.0010.01712.13
5.3.210.0010.03012.11
5.3.200.0030.02712.07
5.3.190.0040.02412.19
5.3.180.0020.02012.09
5.3.170.0020.01912.13
5.3.160.0040.01512.14
5.3.150.0020.02312.13
5.3.140.0040.01612.14
5.3.130.0020.01912.13
5.3.120.0070.01312.13
5.3.110.0030.02012.16
5.3.100.0020.01611.97
5.3.90.0020.02911.94
5.3.80.0040.02011.95
5.3.70.0050.01411.89
5.3.60.0010.01711.96
5.3.50.0010.03011.88
5.3.40.0020.02011.93
5.3.30.0040.02011.90
5.3.20.0010.02111.80
5.3.10.0030.01711.74
5.3.00.0050.01811.74
5.2.170.0020.02610.86
5.2.160.0040.01110.95
5.2.150.0080.02310.89
5.2.140.0030.01710.95
5.2.130.0010.02610.87
5.2.120.0020.01610.92
5.2.110.0040.02110.84
5.2.100.0030.01910.89
5.2.90.0060.01710.89
5.2.80.0020.01310.88
5.2.70.0050.01210.93
5.2.60.0000.01710.86
5.2.50.0060.02310.87
5.2.40.0020.02510.90
5.2.30.0030.02310.83
5.2.20.0030.02510.85
5.2.10.0020.02410.83
5.2.00.0040.01610.77
5.1.60.0030.02010.53
5.1.50.0030.01410.55
5.1.40.0000.01810.54
5.1.30.0030.02110.65
5.1.20.0040.02110.65
5.1.10.0020.02110.58
5.1.00.0040.01210.55
5.0.50.0030.01010.17
5.0.40.0030.01810.17
5.0.30.0020.02210.17
5.0.20.0020.01710.17
5.0.10.0010.01510.17
5.0.00.0010.01510.17
4.4.90.0010.00810.17
4.4.80.0030.00910.17
4.4.70.0030.01210.17
4.4.60.0010.01310.17
4.4.50.0000.01110.17
4.4.40.0010.02210.17
4.4.30.0000.01110.17
4.4.20.0010.01210.17
4.4.10.0010.01610.17
4.4.00.0020.01110.17
4.3.110.0020.01410.17
4.3.100.0020.01010.17
4.3.90.0020.01210.17
4.3.80.0010.01310.17
4.3.70.0000.01110.17
4.3.60.0020.00810.17
4.3.50.0010.00610.17
4.3.40.0010.01010.17
4.3.30.0030.01210.17
4.3.20.0000.01610.17
4.3.10.0030.01110.17
4.3.00.0000.01110.17

preferences:
56.3 ms | 401 KiB | 5 Q