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; if(gettype($a) == "DOMElement") { $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.0120.00618.80
8.3.50.0100.00822.06
8.3.40.0100.01018.85
8.3.30.0090.00619.17
8.3.20.0000.00720.64
8.3.10.0050.00322.22
8.3.00.0080.00022.65
8.2.180.0160.00316.75
8.2.170.0090.00622.96
8.2.160.0070.00721.38
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00319.60
8.2.110.0030.00722.66
8.2.100.0040.00818.28
8.2.90.0000.00819.30
8.2.80.0060.00319.91
8.2.70.0030.00617.75
8.2.60.0110.00617.91
8.2.50.0080.00318.07
8.2.40.0030.00618.34
8.2.30.0000.00718.41
8.2.20.0000.00717.90
8.2.10.0060.00319.68
8.2.00.0030.00617.98
8.1.280.0110.01125.92
8.1.270.0040.00422.27
8.1.260.0140.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00324.14
8.1.230.0000.01119.45
8.1.220.0000.00818.16
8.1.210.0090.00018.77
8.1.200.0030.00717.38
8.1.190.0000.00817.55
8.1.180.0040.00418.10
8.1.170.0030.00518.84
8.1.160.0000.00722.33
8.1.150.0060.00318.84
8.1.140.0080.00017.65
8.1.130.0000.00818.09
8.1.120.0080.00017.70
8.1.110.0030.00517.64
8.1.100.0000.00717.72
8.1.90.0030.00417.60
8.1.80.0000.00717.68
8.1.70.0050.00317.74
8.1.60.0090.00017.73
8.1.50.0080.00017.77
8.1.40.0040.00417.81
8.1.30.0040.00417.94
8.1.20.0000.00917.95
8.1.10.0040.00417.75
8.1.00.0040.00417.81
8.0.300.0060.00318.77
8.0.290.0040.00417.53
8.0.280.0040.00418.67
8.0.270.0030.00317.48
8.0.260.0000.00717.11
8.0.250.0020.00517.08
8.0.240.0030.00317.23
8.0.230.0070.00017.22
8.0.220.0080.00017.13
8.0.210.0050.00217.14
8.0.200.0040.00417.12
8.0.190.0040.00417.23
8.0.180.0080.00017.16
8.0.170.0040.00417.20
8.0.160.0040.00417.22
8.0.150.0040.00417.11
8.0.140.0000.00717.16
8.0.130.0000.00613.55
8.0.120.0000.00817.18
8.0.110.0040.00417.06
8.0.100.0030.00517.09
8.0.90.0040.00417.04
8.0.80.0070.01017.24
8.0.70.0040.00417.13
8.0.60.0000.00717.25
8.0.50.0040.00416.96
8.0.30.0100.00917.44
8.0.20.0140.00517.53
8.0.10.0030.00517.09
8.0.00.0080.00917.00
7.4.330.0070.00015.00
7.4.320.0060.00016.87
7.4.300.0070.00016.69
7.4.290.0030.00316.95
7.4.280.0000.00816.78
7.4.270.0000.01016.85
7.4.260.0000.00716.67
7.4.250.0000.00716.80
7.4.240.0040.00316.96
7.4.230.0000.00716.77
7.4.220.0000.01516.95
7.4.210.0030.01216.77
7.4.200.0030.00316.95
7.4.190.0000.00816.99
7.4.160.0090.00616.63
7.4.150.0100.00717.40
7.4.140.0090.01317.86
7.4.130.0100.00916.67
7.4.120.0060.01216.79
7.4.110.0030.01316.62
7.4.100.0060.01916.67
7.4.90.0180.00016.70
7.4.80.0110.00819.39
7.4.70.0110.00716.77
7.4.60.0070.01116.63
7.4.50.0000.00816.46
7.4.40.0070.00722.77
7.4.30.0060.01016.64
7.4.00.0100.00715.35
7.3.330.0060.00313.48
7.3.320.0030.00313.46
7.3.310.0000.00716.60
7.3.300.0000.00716.60
7.3.290.0040.01116.62
7.3.280.0090.01116.59
7.3.270.0110.00617.40
7.3.260.0170.00316.98
7.3.250.0050.01416.78
7.3.240.0070.01016.68
7.3.230.0110.00816.73
7.3.210.0030.01316.65
7.3.200.0060.01316.91
7.3.190.0060.01116.77
7.3.180.0060.01016.86
7.3.170.0040.01216.59
7.3.160.0060.01216.52
7.3.120.0050.01115.05
7.3.110.0040.01515.30
7.3.100.0120.00415.01
7.3.90.0100.00715.07
7.3.80.0110.00314.99
7.3.70.0040.01214.99
7.3.60.0070.00714.82
7.3.50.0040.00714.75
7.3.40.0070.01114.95
7.3.30.0070.00714.97
7.3.20.0030.00916.80
7.3.10.0060.00616.98
7.3.00.0070.00616.78
7.2.330.0090.00917.02
7.2.320.0110.01316.98
7.2.310.0100.00616.71
7.2.300.0040.01416.96
7.2.290.0080.00816.77
7.2.250.0110.00714.94
7.2.240.0100.01015.18
7.2.230.0120.00415.09
7.2.220.0060.00914.98
7.2.210.0030.01015.16
7.2.200.0030.01115.29
7.2.190.0000.01015.06
7.2.180.0030.01015.35
7.2.170.0070.00315.26
7.2.00.0030.00719.56
7.1.330.0070.01016.01
7.1.320.0100.00316.12
7.1.310.0040.00815.92
7.1.300.0030.01015.71
7.1.290.0030.01016.14
7.1.280.0090.00615.76
7.1.270.0030.01015.80
7.1.260.0090.00316.02
7.1.100.0040.00817.85
7.1.70.0000.00717.29
7.1.60.0100.01419.82
7.1.50.0090.00916.80
7.1.00.0100.07022.41
7.0.200.0060.00616.68
7.0.140.0070.07022.12
7.0.60.0030.08020.00
7.0.50.0130.07717.91
7.0.40.0070.09020.20
7.0.30.0230.04720.25
7.0.20.0170.04720.12
7.0.10.0070.06720.10
7.0.00.0030.05020.08
5.6.280.0000.07721.04
5.6.210.0000.09320.71
5.6.200.0170.06318.26
5.6.190.0070.06020.57
5.6.180.1370.04720.51
5.6.170.0230.04320.57
5.6.160.0130.07020.61
5.6.150.0070.03718.18
5.6.140.0000.06318.20
5.6.130.0000.07018.32
5.6.120.0070.08321.02
5.6.110.0100.04021.05
5.6.100.0100.08321.05
5.6.90.0030.09021.09
5.6.80.0030.05320.59
5.6.70.4470.03720.42
5.5.350.0200.03320.37
5.5.340.0070.08018.09
5.5.330.0130.06020.23
5.5.320.3930.04720.36
5.5.310.0270.05720.25
5.5.300.0070.08718.08
5.5.290.0070.08018.07
5.5.280.0130.07720.86
5.5.270.0100.04320.85
5.5.260.0100.03320.81
5.5.250.0030.04020.64
5.5.240.0370.07320.32
5.4.450.0230.05019.57
5.4.440.0130.05319.35
5.4.430.0200.05019.57
5.4.420.0170.04719.77
5.4.410.0130.07719.29
5.4.400.0100.05318.80
5.4.390.0070.05318.81
5.4.380.0270.05318.65
5.4.370.0230.06018.77
5.4.360.0300.05018.55
5.4.350.0170.05318.79
5.4.340.0230.05018.83
5.4.320.0070.03612.62
5.4.310.0100.03412.61
5.4.300.0120.03712.62
5.4.290.0060.03712.62
5.4.280.0070.04112.52
5.4.270.0130.06018.97
5.4.260.0130.05318.92
5.4.250.0100.06019.07
5.4.240.0030.05718.96
5.4.230.0030.06319.02
5.4.220.0030.06319.02
5.4.210.0070.05719.02
5.4.200.0100.05018.96
5.4.190.0070.07319.01
5.4.180.0030.06318.96
5.4.170.0200.05718.90
5.4.160.0100.05719.09
5.4.150.0100.05719.01
5.4.140.0070.05316.47
5.4.130.0100.06316.69
5.4.120.0100.06316.71
5.4.110.0200.04016.61
5.4.100.0100.05316.41
5.4.90.0230.03716.77
5.4.80.0100.06716.57
5.4.70.0100.06016.40
5.4.60.0030.06016.54
5.4.50.0200.04716.55
5.4.40.0100.04716.60
5.4.30.0070.05316.56
5.4.20.0170.04716.51
5.4.10.0170.06716.52
5.4.00.0200.05316.02
5.3.290.0080.04012.89
5.3.280.0030.05314.79
5.3.270.0130.05014.84
5.3.260.0070.05714.67
5.3.250.0100.05314.84
5.3.240.0070.06314.82
5.3.230.0100.06014.88
5.3.220.0170.05014.84
5.3.210.0170.05014.79
5.3.200.0070.05714.78
5.3.190.0170.05014.79
5.3.180.0130.07014.71
5.3.170.0130.06014.71
5.3.160.0070.06014.80
5.3.150.0070.06014.63
5.3.140.0100.05314.62
5.3.130.0170.05014.85
5.3.120.0130.07714.63
5.3.110.0100.05314.68
5.3.100.0230.05014.26
5.3.90.0100.05314.19
5.3.80.0070.05013.98
5.3.70.0030.05314.09
5.3.60.0070.05314.24
5.3.50.0100.07013.99
5.3.40.0170.06014.02
5.3.30.0100.05014.05
5.3.20.0170.06013.98
5.3.10.0100.05713.82
5.3.00.0070.05313.79
5.2.170.0070.06011.45
5.2.160.0170.04311.43
5.2.150.0070.05311.37
5.2.140.0070.04011.39
5.2.130.0130.04711.32
5.2.120.0130.03311.42
5.2.110.0030.04311.16
5.2.100.0030.05711.17
5.2.90.0070.04011.17
5.2.80.0100.05311.41
5.2.70.0030.04711.41
5.2.60.0100.04011.38
5.2.50.0070.06011.09
5.2.40.0030.04311.30
5.2.30.0100.03711.28
5.2.20.0000.05011.17
5.2.10.0170.04311.06
5.2.00.0130.04310.74
5.1.60.0170.03310.20
5.1.50.0130.02710.16
5.1.40.0100.03010.00
5.1.30.0070.03710.55
5.1.20.0100.03310.65
5.1.10.0030.03710.19
5.1.00.0030.03710.38
5.0.50.0030.0309.47
5.0.40.0030.0309.47
5.0.30.0030.0439.47
5.0.20.0000.0309.47
5.0.10.0000.0339.47
5.0.00.0000.0579.47
4.4.90.0000.0279.47
4.4.80.0070.0209.47
4.4.70.0170.0139.47
4.4.60.0070.0179.47
4.4.50.0000.0239.47
4.4.40.0030.0379.47
4.4.30.0000.0279.47
4.4.20.0070.0179.47
4.4.10.0000.0239.47
4.4.00.0070.0339.47
4.3.110.0000.0279.47
4.3.100.0000.0239.47
4.3.90.0030.0239.47
4.3.80.0070.0339.47
4.3.70.0100.0239.47
4.3.60.0100.0209.47
4.3.50.0000.0309.47
4.3.40.0070.0339.47
4.3.30.0030.0309.47
4.3.20.0000.0239.47
4.3.10.0070.0179.47
4.3.00.0030.0236.65

preferences:
34.83 ms | 401 KiB | 5 Q