3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = '<div class="cModule myphotos"> <h3><span>My photos</span></h3> <ul class="cResetList cThumbList clrfix"> <li> <a href="/projects/mysportsjam/index.php/joom-social/103-shine/photos/photo?albumid=12#photoid=67" hidefocus="true" style="outline: none;"><img class="cAvatar jomNameTips cAvatar-sidebar" title="Uploaded by shine s" src="http://107.20.167.165/projects/mysportsjam/images/photos/103/12/thumb_05c0beeb8f0f32a08538dad7.jpg" alt="shine s"></a> </li> <li> <a href="/projects/mysportsjam/index.php/joom-social/103-shine/photos/photo?albumid=12#photoid=43" hidefocus="true" style="outline: none;"><img class="cAvatar jomNameTips cAvatar-sidebar" src="http://107.20.167.165/projects/mysportsjam/images/photos/103/12/thumb_c122ff8dafd2edeba377a1cd.jpg" alt="shine s" original-title="Uploaded by shine s"></a> </li> <li> <a href="/projects/mysportsjam/index.php/joom-social/103-shine/photos/photo?albumid=12#photoid=66" hidefocus="true" style="outline: none;"><img class="cAvatar jomNameTips cAvatar-sidebar" title="Uploaded by shine s" src="http://107.20.167.165/projects/mysportsjam/images/photos/103/12/thumb_9414b5dff6c8644d197ff684.jpg" alt="shine s"></a> </li> </ul> <div class="app-box-footer"> <a href="/projects/mysportsjam/index.php/joom-social/103-shine/photos" hidefocus="true" style="outline: none;">View all photos</a> </div> </div>'; $xml = new DOMDocument(); $xml->loadHTML($body); $nodes = $xml->getElementsByTagName('li'); for($curr = 0; $curr < $nodes->length; $curr++) { $li = $nodes->item($curr); print $li->nodeValue . "\n"; foreach($li->childNodes as $child) { $a = $child; var_dump($child); $href = $a->getAttribute('href'); print "{$href}\n"; } print "\n"; }

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.00918.58
8.3.50.0100.00722.11
8.3.40.0180.00418.92
8.3.30.0130.00619.35
8.3.20.0040.00420.16
8.3.10.0080.00022.18
8.3.00.0080.00022.52
8.2.180.0100.01017.00
8.2.170.0110.00722.96
8.2.160.0140.00719.46
8.2.150.0040.00424.18
8.2.140.0060.00924.66
8.2.130.0040.00426.16
8.2.120.0000.00818.00
8.2.110.0120.00022.50
8.2.100.0080.00418.09
8.2.90.0030.00519.27
8.2.80.0060.00317.97
8.2.70.0060.00317.88
8.2.60.0060.00318.29
8.2.50.0040.00418.34
8.2.40.0040.00422.53
8.2.30.0040.00419.54
8.2.20.0050.00317.97
8.2.10.0030.00519.86
8.2.00.0050.00318.14
8.1.280.0150.00625.92
8.1.270.0050.00322.39
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00324.05
8.1.230.0100.00318.21
8.1.220.0030.00617.93
8.1.210.0080.00018.77
8.1.200.0050.00517.85
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0000.00819.01
8.1.160.0030.00619.04
8.1.150.0050.00218.89
8.1.140.0040.00417.61
8.1.130.0050.00318.02
8.1.120.0040.00417.72
8.1.110.0000.00817.72
8.1.100.0000.00817.63
8.1.90.0050.00317.71
8.1.80.0040.00417.72
8.1.70.0090.00017.73
8.1.60.0050.00317.89
8.1.50.0000.00917.87
8.1.40.0030.00517.71
8.1.30.0000.00817.84
8.1.20.0000.00817.78
8.1.10.0000.00917.80
8.1.00.0040.00417.80
8.0.300.0080.00018.77
8.0.290.0080.00017.13
8.0.280.0040.00418.71
8.0.270.0040.00417.55
8.0.260.0070.00017.14
8.0.250.0000.00817.34
8.0.240.0100.00017.19
8.0.230.0000.00717.16
8.0.220.0040.00417.28
8.0.210.0030.00317.21
8.0.200.0000.00617.16
8.0.190.0000.00717.32
8.0.180.0070.00017.21
8.0.170.0030.00517.21
8.0.160.0040.00417.18
8.0.150.0040.00417.10
8.0.140.0000.00817.21
8.0.130.0000.00613.67
8.0.120.0040.00417.06
8.0.110.0030.00517.11
8.0.100.0040.00417.30
8.0.90.0040.00417.20
8.0.80.0120.00617.18
8.0.70.0030.00517.02
8.0.60.0040.00417.07
8.0.50.0020.00517.07
8.0.30.0140.01217.49
8.0.20.0110.00817.40
8.0.10.0070.00017.37
8.0.00.0050.01717.03
7.4.330.0030.00315.30
7.4.320.0040.00416.65
7.4.300.0030.00316.75
7.4.290.0040.00416.68
7.4.280.0000.00716.66
7.4.270.0030.00616.86
7.4.260.0040.00416.75
7.4.250.0080.00016.92
7.4.240.0060.00216.80
7.4.230.0030.00316.89
7.4.220.0130.01016.71
7.4.210.0120.00516.82
7.4.200.0030.00316.93
7.4.190.0040.00416.82
7.4.160.0040.01617.08
7.4.150.0130.00617.40
7.4.140.0150.00817.86
7.4.130.0100.01016.76
7.4.120.0100.01016.90
7.4.110.0070.01116.65
7.4.100.0110.00716.73
7.4.90.0050.01516.77
7.4.80.0150.00519.39
7.4.70.0110.00616.82
7.4.60.0130.00616.74
7.4.50.0000.00816.52
7.4.40.0030.01322.77
7.4.30.0110.00616.67
7.4.00.0120.00414.98
7.3.330.0000.00613.50
7.3.320.0050.00013.49
7.3.310.0070.00016.70
7.3.300.0030.00316.68
7.3.290.0040.01116.65
7.3.280.0110.00716.68
7.3.270.0120.00617.40
7.3.260.0110.00816.83
7.3.250.0100.01016.71
7.3.240.0120.00616.84
7.3.230.0130.01016.88
7.3.210.0130.00516.66
7.3.200.0130.01319.39
7.3.190.0140.00716.97
7.3.180.0130.00716.72
7.3.170.0070.01016.70
7.3.160.0060.01216.76
7.3.120.0070.00714.99
7.2.330.0090.00916.61
7.2.320.0090.01217.04
7.2.310.0170.00716.82
7.2.300.0060.01316.68
7.2.290.0060.01216.62
7.2.60.0150.00916.83
7.2.00.0000.01719.52
7.1.200.0110.00316.00
7.1.100.0060.00918.01
7.1.70.0140.00017.13
7.1.60.0130.01319.82
7.1.50.0110.01117.24
7.1.00.0030.07722.50
7.0.200.0040.00817.03
7.0.140.0000.07322.08
7.0.60.0030.09020.02
7.0.50.0170.05018.01
7.0.40.0130.07317.81
7.0.30.0070.08717.88
7.0.20.0030.07017.87
7.0.10.0170.07017.84
7.0.00.0100.06317.80
5.6.280.0070.07021.12
5.6.210.0030.04020.84
5.6.200.0070.07718.26
5.6.190.0100.07318.29
5.6.180.0030.07718.23
5.6.170.0070.07318.25
5.6.160.0130.07318.30
5.6.150.0030.08718.20
5.6.140.0070.08318.30
5.6.130.0130.07018.19
5.6.120.0070.08018.23
5.6.110.0170.07318.30
5.6.100.0070.08318.14
5.6.90.0070.08018.14
5.6.80.0100.07717.65
5.6.70.0030.05717.60
5.6.60.0070.08017.56
5.6.50.0070.06317.63
5.6.40.0130.03717.64
5.6.30.0130.07017.66
5.6.20.0100.08017.59
5.6.10.0070.05717.66
5.6.00.0130.06317.64
5.5.350.0000.03720.49
5.5.340.0230.05718.03
5.5.330.0100.07018.04
5.5.320.0030.04718.03
5.5.310.0100.07718.09
5.5.300.0070.08317.95
5.5.290.0030.07017.95
5.5.280.0070.08018.01
5.5.270.0100.07718.06
5.5.260.0100.07318.09
5.5.250.0030.04317.92
5.5.240.0100.07017.42
5.5.230.0070.08317.45
5.5.220.0070.07017.46
5.5.210.0000.08317.45
5.5.200.0100.04017.36
5.5.190.0100.06017.40
5.5.180.0000.04717.45
5.5.160.0100.03717.31
5.5.150.0130.06717.38
5.5.140.0130.07317.36
5.5.130.0100.07317.36
5.5.120.0100.06717.40
5.5.110.0100.06717.41
5.5.100.0000.05017.22
5.5.90.0070.03717.31
5.5.80.0100.03317.28
5.5.70.0030.08317.34
5.5.60.0070.07717.24
5.5.50.0030.08317.36
5.5.40.0030.06317.35
5.5.30.0070.05317.27
5.5.20.0100.06017.23
5.5.10.0100.07017.30
5.5.00.0030.05017.24
5.4.450.0030.07319.43
5.4.440.0070.08719.40
5.4.430.0000.08319.29
5.4.420.0070.07019.43
5.4.410.0070.08019.41
5.4.400.0130.06018.97
5.4.390.0070.08319.12
5.4.380.0130.07319.20
5.4.370.0070.07019.10
5.4.360.0070.05719.11
5.4.350.0030.04019.12
5.4.340.0000.05019.12
5.4.320.0030.07719.13
5.4.310.0070.08319.15
5.4.300.0000.07719.03
5.4.290.0100.07019.10
5.4.280.0030.07719.07
5.4.270.0130.07018.97
5.4.260.0070.05719.09
5.4.250.0070.04319.13
5.4.240.0000.08318.90
5.4.230.0030.07718.89
5.4.220.0030.04719.07
5.4.210.0100.07319.07
5.4.200.0130.06018.96
5.4.190.0100.07019.05
5.4.180.0100.05018.96
5.4.170.0100.07319.08
5.4.160.0130.07019.06
5.4.150.0130.03019.07
5.4.140.0000.04016.39
5.4.130.0130.07016.48
5.4.120.0100.04016.59
5.4.110.0000.05316.52
5.4.100.0030.03716.56
5.4.90.0000.06016.46
5.4.80.0030.05316.40
5.4.70.0070.07316.37
5.4.60.0070.07016.52
5.4.50.0070.06316.34
5.4.40.0000.05016.34
5.4.30.0100.06716.48
5.4.20.0130.07016.53
5.4.10.0030.06716.53
5.4.00.0100.06015.90
5.3.290.0030.08014.70
5.3.280.0070.07314.55
5.3.270.0070.07314.67
5.3.260.0030.05314.52
5.3.250.0000.04714.66
5.3.240.0070.07714.70
5.3.230.0000.07014.66
5.3.220.0030.07014.52
5.3.210.0000.04314.63
5.3.200.0000.04014.61
5.3.190.0100.07014.61
5.3.180.0070.07714.64
5.3.170.0030.04714.60
5.3.160.0070.06314.64
5.3.150.0100.06714.60
5.3.140.0000.04714.63
5.3.130.0070.07714.62
5.3.120.0070.07314.61
5.3.110.0100.05714.63
5.3.100.0100.07014.11
5.3.90.0000.07314.19
5.3.80.0070.03713.86
5.3.70.0000.06714.08
5.3.60.0100.03014.02
5.3.50.0070.06314.11
5.3.40.0070.04714.00
5.3.30.0030.03313.95
5.3.20.0100.02713.74
5.3.10.0030.03313.71
5.3.00.0030.03313.68
5.2.170.0000.03311.19
5.2.160.0030.03311.37
5.2.150.0000.03011.20
5.2.140.0070.02311.26
5.2.130.0030.02711.00
5.2.120.0000.03011.02
5.2.110.0030.02711.24
5.2.100.0030.02711.18
5.2.90.0070.02311.16
5.2.80.0000.04011.09
5.2.70.0000.04011.00
5.2.60.0070.02311.18
5.2.50.0070.05711.16
5.2.40.0000.04010.90
5.2.30.0030.06710.88
5.2.20.0000.06711.18
5.2.10.0070.05311.09
5.2.00.0070.02310.83
5.1.60.0100.0179.99
5.1.50.0070.0209.91
5.1.40.0030.02310.09
5.1.30.0030.02310.44
5.1.20.0000.02710.46
5.1.10.0030.02310.06
5.1.00.0000.02710.13
5.0.50.0070.0178.71
5.0.40.0000.0278.53
5.0.30.0000.0338.28
5.0.20.0070.0138.11
5.0.10.0000.0208.32
5.0.00.0030.0308.22
4.4.90.0000.0177.71
4.4.80.0000.0237.71
4.4.70.0070.0177.71
4.4.60.0000.0207.71
4.4.50.0000.0177.71
4.4.40.0030.0277.71
4.4.30.0000.0177.71
4.4.20.0070.0237.71
4.4.10.0000.0177.71
4.4.00.0000.0237.71
4.3.110.0030.0137.71
4.3.100.0000.0177.71
4.3.90.0000.0137.71
4.3.80.0030.0237.71
4.3.70.0000.0177.71
4.3.60.0030.0137.71
4.3.50.0000.0177.71
4.3.40.0000.0407.71
4.3.30.0000.0137.71
4.3.20.0030.0137.71
4.3.10.0000.0137.71
4.3.00.0000.0137.71

preferences:
56.44 ms | 401 KiB | 5 Q