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.0160.00618.68
8.3.50.0190.00322.12
8.3.40.0110.00718.96
8.3.30.0140.00319.21
8.3.20.0090.00020.51
8.3.10.0000.01022.22
8.3.00.0030.00622.59
8.2.180.0140.00316.75
8.2.170.0220.00022.96
8.2.160.0070.01021.17
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0090.00026.16
8.2.120.0060.00317.75
8.2.110.0070.00322.69
8.2.100.0100.00317.97
8.2.90.0030.00619.30
8.2.80.0090.00018.04
8.2.70.0060.00317.50
8.2.60.0070.00418.18
8.2.50.0040.00818.07
8.2.40.0030.00618.28
8.2.30.0000.00818.24
8.2.20.0030.00517.97
8.2.10.0070.00319.79
8.2.00.0000.00918.04
8.1.280.0100.00725.92
8.1.270.0060.00322.33
8.1.260.0150.00626.35
8.1.250.0030.00628.09
8.1.240.0070.00423.91
8.1.230.0060.00619.23
8.1.220.0090.00018.04
8.1.210.0090.00018.77
8.1.200.0030.00617.50
8.1.190.0100.00017.75
8.1.180.0000.00918.10
8.1.170.0000.00918.90
8.1.160.0000.00922.26
8.1.150.0060.00318.76
8.1.140.0040.00417.67
8.1.130.0000.00918.10
8.1.120.0000.00917.58
8.1.110.0000.00817.58
8.1.100.0030.00617.69
8.1.90.0060.00317.54
8.1.80.0080.00017.61
8.1.70.0040.00417.64
8.1.60.0050.00517.80
8.1.50.0040.00417.68
8.1.40.0090.00017.71
8.1.30.0060.00317.76
8.1.20.0030.00617.90
8.1.10.0030.00617.80
8.1.00.0030.00517.76
8.0.300.0030.00518.77
8.0.290.0060.00317.30
8.0.280.0000.00918.59
8.0.270.0060.00317.47
8.0.260.0040.00417.01
8.0.250.0080.00017.08
8.0.240.0030.00517.14
8.0.230.0040.00417.12
8.0.220.0050.00317.16
8.0.210.0040.00417.07
8.0.200.0000.00817.20
8.0.190.0040.00417.14
8.0.180.0040.00417.15
8.0.170.0030.00617.15
8.0.160.0030.00617.07
8.0.150.0030.00616.96
8.0.140.0050.00317.03
8.0.130.0000.00813.53
8.0.120.0060.00317.08
8.0.110.0030.00517.11
8.0.100.0000.00816.86
8.0.90.0040.00417.24
8.0.80.0150.00317.02
8.0.70.0050.00317.18
8.0.60.0000.00817.03
8.0.50.0000.00817.11
8.0.30.0100.01517.29
8.0.20.0170.01417.46
8.0.10.0040.00417.06
8.0.00.0120.01216.98
7.4.330.0030.00315.00
7.4.320.0040.00416.85
7.4.300.0030.00516.73
7.4.290.0000.00816.61
7.4.280.0060.00316.84
7.4.270.0030.00616.74
7.4.260.0000.00916.63
7.4.250.0030.00616.83
7.4.240.0030.00516.81
7.4.230.0000.00816.88
7.4.220.0090.00916.80
7.4.210.0150.00616.70
7.4.200.0040.00416.98
7.4.190.0000.00716.94
7.4.160.0130.00616.85
7.4.150.0160.01017.40
7.4.140.0140.01517.86
7.4.130.0180.01016.65
7.4.120.0160.00916.64
7.4.110.0090.01216.57
7.4.100.0150.00916.80
7.4.90.0170.00616.85
7.4.80.0100.01719.39
7.4.70.0200.00916.77
7.4.60.0150.00616.51
7.4.50.0030.00716.86
7.4.40.0070.00722.77
7.4.30.0060.01516.68
7.4.00.0030.01315.14
7.3.330.0070.00313.41
7.3.320.0050.00013.41
7.3.310.0030.00516.36
7.3.300.0050.00216.55
7.3.290.0070.01716.48
7.3.280.0120.01016.51
7.3.270.0170.00817.40
7.3.260.0180.01116.63
7.3.250.0150.00816.72
7.3.240.0210.00716.69
7.3.230.0160.01216.84
7.3.210.0130.01316.82
7.3.200.0080.01619.39
7.3.190.0130.01016.52
7.3.180.0130.00716.55
7.3.170.0070.01316.86
7.3.160.0220.00616.85
7.3.120.0030.01614.80
7.3.10.0060.00916.84
7.3.00.0000.01816.70
7.2.330.0060.01617.00
7.2.320.0120.01616.80
7.2.310.0200.01017.09
7.2.300.0070.01317.04
7.2.290.0100.01916.91
7.2.130.0100.00316.65
7.2.120.0070.00716.95
7.2.110.0140.00316.64
7.2.100.0060.01216.71
7.2.90.0090.00617.00
7.2.80.0040.01116.75
7.2.70.0080.00817.18
7.2.60.0090.00916.64
7.2.50.0120.00917.25
7.2.40.0070.00716.73
7.2.30.0090.00917.05
7.2.20.0120.00917.07
7.2.10.0180.00017.10
7.2.00.0110.00918.46
7.1.250.0070.00416.10
7.1.200.0060.00915.70
7.1.100.0030.00917.87
7.1.70.0030.00617.08
7.1.60.0170.01019.82
7.1.50.0190.00616.99
7.1.00.0070.07722.45
7.0.200.0030.01016.84
7.0.140.0070.07022.14
7.0.110.0100.07019.98
7.0.100.0100.05020.00
7.0.90.0200.07020.14
7.0.80.0100.08020.03
7.0.70.0170.06020.10
7.0.60.0100.07019.97
7.0.50.0130.06719.96
7.0.40.0130.07319.71
7.0.30.0100.08319.86
7.0.20.0170.07319.80
7.0.10.0030.08019.80
7.0.00.0070.07019.92
5.6.280.0070.07320.96
5.6.260.0130.08020.74
5.6.250.0130.08020.61
5.6.240.0170.07020.70
5.6.230.0100.06320.61
5.6.220.0100.07720.80
5.6.210.0130.08320.73
5.6.200.0100.08720.75
5.6.190.0070.08320.65
5.6.180.0070.06720.69
5.6.170.0130.07020.68
5.6.160.0070.08320.67
5.6.150.0100.06720.68
5.6.140.0100.06320.73
5.6.130.0070.06720.90
5.6.120.0130.07720.74
5.6.110.0100.07720.66
5.6.100.0000.06320.75
5.6.90.0130.07320.70
5.6.80.0130.07320.14
5.6.70.0070.05020.08
5.6.60.0170.02720.03
5.6.50.0100.07720.05
5.6.40.0170.05720.12
5.6.30.0130.05720.05
5.6.20.0030.07320.06
5.6.10.0200.06320.11
5.6.00.0130.07720.05
5.5.380.0170.06720.34
5.5.370.0100.04720.52
5.5.360.0100.05020.46
5.5.350.0100.05020.52
5.5.340.0100.08021.09
5.5.330.0270.06720.90
5.5.320.0170.07020.84
5.5.310.0100.08721.10
5.5.300.0070.04020.85
5.5.290.0070.05721.01
5.5.280.0070.09020.87
5.5.270.0130.07021.01
5.5.260.0100.05021.09
5.5.250.0030.06720.88
5.5.240.0070.08720.19
5.5.230.0170.06320.38
5.5.220.0030.08320.36
5.5.210.0030.04320.13
5.5.200.0100.07020.12
5.5.190.0000.08020.15
5.5.180.0100.04320.38
5.5.160.0100.07320.44
5.5.150.0100.08020.44
5.5.140.0130.08320.36
5.5.130.0100.07720.39
5.5.120.0130.07320.31
5.5.110.0030.08020.30
5.5.100.0030.08020.29
5.5.90.0030.08020.22
5.5.80.0100.08320.26
5.5.70.0170.06020.07
5.5.60.0070.03720.09
5.5.50.0030.08320.32
5.5.40.0100.07020.24
5.5.30.0070.09320.07
5.5.20.0030.06720.30
5.5.10.0000.04720.21
5.5.00.0130.07320.29
5.4.450.0030.04319.43
5.4.440.0070.08019.50
5.4.430.0030.04319.58
5.4.420.0170.04319.41
5.4.410.0100.08319.39
5.4.400.0030.08019.09
5.4.390.0070.07719.03
5.4.380.0030.04319.24
5.4.370.0030.07719.19
5.4.360.0070.05719.10
5.4.350.0100.07319.09
5.4.340.0130.07319.08
5.4.320.0100.07719.09
5.4.310.0100.08019.25
5.4.300.0030.05319.20
5.4.290.0030.06719.39
5.4.280.0070.07319.25
5.4.270.0130.07019.11
5.4.260.0100.06719.11
5.4.250.0100.04019.09
5.4.240.0030.08019.08
5.4.230.0070.06019.25
5.4.220.0030.07019.35
5.4.210.0070.04719.02
5.4.200.0170.06719.10
5.4.190.0030.04319.25
5.4.180.0070.04719.08
5.4.170.0030.04719.02
5.4.160.0070.06719.14
5.4.150.0030.05019.07
5.4.140.0100.06716.36
5.4.130.0030.03316.27
5.4.120.0030.03716.45
5.4.110.0000.03716.41
5.4.100.0000.04016.67
5.4.90.0030.08016.41
5.4.80.0030.05716.36
5.4.70.0030.06716.49
5.4.60.0070.06316.66
5.4.50.0100.06016.30
5.4.40.0130.06316.62
5.4.30.0070.07316.61
5.4.20.0070.06316.65
5.4.10.0030.06016.48
5.4.00.0000.04715.79
5.3.290.0000.06714.66
5.3.280.0200.06314.78
5.3.270.0070.07714.63
5.3.260.0030.04014.60
5.3.250.0100.06714.52
5.3.240.0070.04714.62
5.3.230.0030.05714.78
5.3.220.0030.07714.59
5.3.210.0100.06014.73
5.3.200.0100.06014.55
5.3.190.0030.06314.55
5.3.180.0130.07014.55
5.3.170.0130.07014.67
5.3.160.0070.07714.48
5.3.150.0070.03714.58
5.3.140.0070.07314.59
5.3.130.0070.05014.56
5.3.120.0130.03014.55
5.3.110.0100.05314.66
5.3.100.0100.06714.29
5.3.90.0070.03714.29
5.3.80.0100.06014.29
5.3.70.0030.07314.29
5.3.60.0070.07014.29
5.3.50.0100.04014.29
5.3.40.0070.04714.29
5.3.30.0030.07714.29
5.3.20.0130.06714.29
5.3.10.0130.06714.29
5.3.00.0130.06314.29
5.2.170.0030.06714.29
5.2.160.0070.05714.29
5.2.150.0000.06714.29
5.2.140.0030.05714.29
5.2.130.0030.06714.29
5.2.120.0030.06714.29
5.2.110.0100.06314.29
5.2.100.0070.06014.29
5.2.90.0070.05714.29
5.2.80.0030.06014.29
5.2.70.0030.06314.29
5.2.60.0070.06714.29
5.2.50.0070.04714.29
5.2.40.0030.05014.29
5.2.30.0070.06014.29
5.2.20.0070.06314.29
5.2.10.0000.04014.29
5.2.00.0030.05314.29
5.1.60.0100.04314.29
5.1.50.0000.05714.29
5.1.40.0070.05314.29
5.1.30.0070.05314.29
5.1.20.0100.05314.29
5.1.10.0030.05314.29
5.1.00.0000.05314.29
5.0.50.0000.04014.29
5.0.40.0030.04314.29
5.0.30.0030.06014.29
5.0.20.0030.04314.29
5.0.10.0030.05014.29
5.0.00.0030.04314.29
4.4.90.0070.03014.29
4.4.80.0030.02314.29
4.4.70.0070.03014.29
4.4.60.0000.03714.29
4.4.50.0030.03314.29
4.4.40.0070.05014.29
4.4.30.0000.03714.29
4.4.20.0070.03014.29
4.4.10.0070.03014.29
4.4.00.0070.04714.29
4.3.110.0000.04014.29
4.3.100.0070.03014.29
4.3.90.0030.03714.29
4.3.80.0030.05014.29
4.3.70.0130.02314.29
4.3.60.0000.03714.29
4.3.50.0070.03014.29
4.3.40.0070.05014.29
4.3.30.0030.02714.29
4.3.20.0030.03314.29
4.3.10.0030.01714.29
4.3.00.0030.03014.29

preferences:
42.29 ms | 401 KiB | 5 Q