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"; if($li->hasChildNodes()) { $a = $li->firstChild; $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.0110.00718.77
8.3.50.0090.00822.17
8.3.40.0180.00319.14
8.3.30.0110.00419.34
8.3.20.0040.00420.63
8.3.10.0040.00422.20
8.3.00.0080.00022.52
8.2.180.0160.00716.75
8.2.170.0040.01122.96
8.2.160.0070.00721.22
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00619.73
8.2.110.0030.00622.64
8.2.100.0030.00918.16
8.2.90.0000.00819.46
8.2.80.0000.00917.97
8.2.70.0000.00817.73
8.2.60.0050.00518.04
8.2.50.0040.00818.07
8.2.40.0040.00418.34
8.2.30.0030.00618.27
8.2.20.0050.00318.01
8.2.10.0040.00419.73
8.2.00.0040.00417.95
8.1.280.0180.00325.92
8.1.270.0110.00422.40
8.1.260.0110.00426.35
8.1.250.0000.00728.09
8.1.240.0070.00321.13
8.1.230.0080.00417.77
8.1.220.0040.00418.04
8.1.210.0040.00418.77
8.1.200.0030.00717.60
8.1.190.0000.00917.90
8.1.180.0060.00318.10
8.1.170.0040.00418.98
8.1.160.0040.00422.15
8.1.150.0040.00418.90
8.1.140.0040.00417.69
8.1.130.0040.00418.13
8.1.120.0040.00417.73
8.1.110.0040.00417.64
8.1.100.0000.00717.64
8.1.90.0060.00317.73
8.1.80.0050.00217.61
8.1.70.0000.00817.70
8.1.60.0040.00417.82
8.1.50.0000.00817.77
8.1.40.0030.00517.73
8.1.30.0040.00417.90
8.1.20.0050.00317.94
8.1.10.0000.00717.89
8.1.00.0040.00417.73
8.0.300.0000.00818.77
8.0.290.0070.00017.13
8.0.280.0040.00418.58
8.0.270.0070.00017.39
8.0.260.0000.00717.14
8.0.250.0000.00817.21
8.0.240.0030.00317.15
8.0.230.0040.00417.15
8.0.220.0040.00417.12
8.0.210.0050.00317.27
8.0.200.0030.00317.27
8.0.190.0030.00517.31
8.0.180.0050.00317.23
8.0.170.0060.00317.15
8.0.160.0050.00217.33
8.0.150.0040.00417.15
8.0.140.0050.00217.16
8.0.130.0000.00613.63
8.0.120.0040.00417.11
8.0.110.0000.00717.19
8.0.100.0040.00417.27
8.0.90.0040.00417.11
8.0.80.0040.01217.08
8.0.70.0050.00317.27
8.0.60.0040.00417.02
8.0.50.0040.00417.20
8.0.30.0120.01217.22
8.0.20.0100.00917.43
8.0.10.0040.00417.11
8.0.00.0110.00816.94
7.4.330.0000.00615.00
7.4.320.0060.00016.62
7.4.300.0030.00316.87
7.4.290.0000.00716.73
7.4.280.0030.00316.78
7.4.270.0000.01016.75
7.4.260.0050.00316.62
7.4.250.0030.00516.61
7.4.240.0040.00316.84
7.4.230.0000.00816.83
7.4.220.0120.00316.92
7.4.210.0100.00616.88
7.4.200.0040.00416.93
7.4.190.0050.00216.88
7.4.160.0040.01216.54
7.4.150.0070.01317.40
7.4.140.0090.00917.86
7.4.130.0170.00416.77
7.4.120.0080.00916.75
7.4.110.0000.01816.83
7.4.100.0140.00416.99
7.4.90.0090.00916.62
7.4.80.0120.01219.39
7.4.70.0070.01516.63
7.4.60.0130.01017.04
7.4.50.0030.00616.63
7.4.40.0040.01222.77
7.4.30.0110.00716.82
7.4.00.0030.01014.92
7.3.330.0040.00413.35
7.3.320.0000.00513.39
7.3.310.0000.00716.56
7.3.300.0070.00016.62
7.3.290.0100.00316.54
7.3.280.0050.01316.63
7.3.270.0120.00617.40
7.3.260.0110.01416.55
7.3.250.0070.01016.80
7.3.240.0100.00616.84
7.3.230.0120.00616.79
7.3.210.0040.01416.70
7.3.200.0080.00819.39
7.3.190.0060.01616.73
7.3.180.0060.00916.70
7.3.170.0080.00816.71
7.3.160.0140.00416.83
7.3.120.0100.00715.10
7.3.10.0080.00416.60
7.3.00.0070.00316.48
7.2.330.0130.00716.95
7.2.320.0100.01316.96
7.2.310.0100.00716.96
7.2.300.0210.00316.72
7.2.290.0110.00517.07
7.2.130.0030.01016.93
7.2.120.0060.00616.57
7.2.110.0080.00416.89
7.2.100.0070.00317.00
7.2.90.0090.00616.69
7.2.80.0070.00717.11
7.2.70.0060.00316.95
7.2.60.0060.00916.90
7.2.50.0100.00717.18
7.2.40.0060.00316.70
7.2.30.0110.00416.88
7.2.20.0060.01017.04
7.2.10.0110.00417.02
7.2.00.0060.00818.24
7.1.250.0080.00415.57
7.1.200.0130.00015.80
7.1.100.0000.01217.93
7.1.70.0070.00017.29
7.1.60.0100.01319.82
7.1.50.0100.01316.91
7.1.00.0030.07322.54
7.0.200.0060.00616.84
7.0.140.0070.07022.03
7.0.70.0030.08721.72
7.0.60.0030.08721.82
7.0.50.0030.07722.10
7.0.40.0100.04020.18
7.0.30.0100.08320.18
7.0.20.0030.08720.22
7.0.10.0100.08020.04
7.0.00.0030.09020.00
5.6.280.0070.07020.96
5.6.220.0070.07720.77
5.6.210.0070.06020.67
5.6.200.0030.05720.99
5.6.190.0000.09321.06
5.6.180.0000.06321.09
5.6.170.0030.06721.02
5.6.160.0030.08020.99
5.6.150.0100.07021.05
5.6.140.0130.07721.18
5.6.130.0130.07321.09
5.6.120.0070.09021.14
5.6.110.0100.08021.17
5.6.100.0100.08021.13
5.6.90.0100.08721.16
5.6.80.0070.03720.38
5.6.70.0030.04020.44
5.6.60.0070.04020.43
5.6.50.0000.04320.55
5.6.40.0100.03320.36
5.6.30.0000.04320.37
5.6.20.0000.04320.53
5.6.10.0100.07720.42
5.6.00.0100.03320.40
5.5.360.0130.06320.39
5.5.350.0200.07020.50
5.5.340.0030.08320.89
5.5.330.0030.05320.85
5.5.320.0070.06020.94
5.5.310.0100.07020.81
5.5.300.0100.08020.92
5.5.290.0030.08720.81
5.5.280.0130.07320.88
5.5.270.0000.07720.93
5.5.260.0100.08320.84
5.5.250.0100.09020.51
5.5.240.0070.04020.15
5.5.230.0100.05020.34
5.5.220.0100.03320.34
5.5.210.0030.04320.23
5.5.200.0000.04320.23
5.5.190.0100.04020.31
5.5.180.0030.05020.34
5.5.160.0030.03320.31
5.5.150.0070.03320.29
5.5.140.0000.07720.29
5.5.130.0100.03320.02
5.5.120.0100.07720.32
5.5.110.0070.03720.14
5.5.100.0030.06320.04
5.5.90.0030.04020.09
5.5.80.0030.04020.12
5.5.70.0000.04320.21
5.5.60.0130.02320.02
5.5.50.0000.04020.18
5.5.40.0030.03320.11
5.5.30.0130.03020.21
5.5.20.0030.03720.14
5.5.10.0000.04020.10
5.5.00.0030.03320.14
5.4.450.0100.07719.47
5.4.440.0030.08019.46
5.4.430.0170.06719.30
5.4.420.0070.08019.35
5.4.410.0100.06019.43
5.4.400.0000.04019.32
5.4.390.0070.06319.20
5.4.380.0070.03319.11
5.4.370.0070.03319.22
5.4.360.0000.04019.17
5.4.350.0030.04319.13
5.4.340.0000.04019.13
5.4.320.0070.03319.31
5.4.310.0000.03319.22
5.4.300.0070.03019.20
5.4.290.0100.03019.13
5.4.280.0070.03719.11
5.4.270.0030.04019.00
5.4.260.0000.04019.13
5.4.250.0000.04019.19
5.4.240.0070.03318.86
5.4.230.0030.03719.22
5.4.220.0030.03719.18
5.4.210.0030.03019.11
5.4.200.0030.06319.21
5.4.190.0070.03319.13
5.4.180.0100.03319.20
5.4.170.0070.03318.97
5.4.160.0000.04019.14
5.4.150.0000.06319.09
5.4.140.0030.05016.50
5.4.130.0070.03316.48
5.4.120.0000.03316.26
5.4.110.0000.03716.58
5.4.100.0030.05716.35
5.4.90.0030.07316.37
5.4.80.0030.05316.48
5.4.70.0000.04016.43
5.4.60.0030.06016.36
5.4.50.0070.04316.55
5.4.40.0030.03316.55
5.4.30.0070.03016.43
5.4.20.0000.05716.41
5.4.10.0000.04016.42
5.4.00.0000.04315.87
5.3.290.0000.04014.75
5.3.280.0070.03314.54
5.3.270.0070.02714.65
5.3.260.0100.03014.73
5.3.250.0000.06314.54
5.3.240.0030.03714.69
5.3.230.0030.03714.67
5.3.220.0030.03314.47
5.3.210.0030.04314.65
5.3.200.0030.03714.66
5.3.190.0000.05014.64
5.3.180.0030.05014.50
5.3.170.0030.04714.64
5.3.160.0030.04014.50
5.3.150.0000.04014.64
5.3.140.0030.04014.50
5.3.130.0000.04014.64
5.3.120.0030.05314.45
5.3.110.0000.04014.49
5.3.100.0030.03714.08
5.3.90.0000.03714.09
5.3.80.0030.03314.11
5.3.70.0030.03714.10
5.3.60.0030.04014.09
5.3.50.0000.05714.07
5.3.40.0070.04013.94
5.3.30.0070.07313.98
5.3.20.0030.07713.64
5.3.10.0100.07013.51
5.3.00.0030.05313.68
5.2.170.0070.03313.21
5.2.160.0000.04313.21
5.2.150.0100.05013.21
5.2.140.0000.07013.21
5.2.130.0030.05713.21
5.2.120.0030.05013.21
5.2.110.0070.05713.21
5.2.100.0000.05713.21
5.2.90.0100.05313.21
5.2.80.0070.06013.21
5.2.70.0070.05313.21
5.2.60.0070.05713.21
5.2.50.0000.06713.21
5.2.40.0070.04713.21
5.2.30.0030.06313.21
5.2.20.0000.05313.21
5.2.10.0000.06713.21
5.2.00.0030.04713.21
5.1.60.0070.05313.21
5.1.50.0030.04013.21
5.1.40.0030.05313.21
5.1.30.0000.05713.21
5.1.20.0000.05313.21
5.1.10.0030.03013.21
5.1.00.0030.05313.21
5.0.50.0070.03713.21
5.0.40.0070.04013.21
5.0.30.0030.04713.21
5.0.20.0070.04313.21
5.0.10.0030.04313.21
5.0.00.0000.06713.21
4.4.90.0000.04013.21
4.4.80.0030.03713.21
4.4.70.0000.03713.21
4.4.60.0000.03013.21
4.4.50.0030.03313.21
4.4.40.0000.05313.21
4.4.30.0000.03713.21
4.4.20.0000.03013.21
4.4.10.0030.03713.21
4.4.00.0000.05713.21
4.3.110.0000.03713.21
4.3.100.0070.03013.21
4.3.90.0030.03313.21
4.3.80.0030.05313.21
4.3.70.0000.03713.21
4.3.60.0030.03013.21
4.3.50.0070.03013.21
4.3.40.0030.04313.21
4.3.30.0070.02313.21
4.3.20.0030.03713.21
4.3.10.0000.03313.21
4.3.00.0030.03313.21

preferences:
43.26 ms | 401 KiB | 5 Q