3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html ="<div align=center><object><embed src='http://www.GamesForWork.com/games/swf/Rodent Tree Jump january 4th 2007.swf' quality='autohigh' wmode='direct' width='640' height='400' name='gameObj' align='middle' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/go/getflashplayer'/></object><br><font face=verdana size=1><a href='http://www.gamesforwork.com/' target='_blank'>10 daily games at gamesforwork.com</a></font></div> "; //Create a new DOM document $dom = new DOMDocument; //Parse the HTML. The @ is used to suppress any parsing errors //that will be thrown if the $html string isn't valid XHTML. @$dom->loadHTML($html); //Get all links. You could also use any other tag name here, //like 'img' or 'table', to extract other tags. $links = $dom->getElementsByTagName('a'); //Iterate over the extracted links and display their URLs foreach ($links as $link){ //Extract and show the "href" attribute. echo $link->nodeValue; echo $link->getAttribute('href'), '<br>'; }

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.0130.00618.56
8.3.50.0150.00318.20
8.3.40.0190.00318.96
8.3.30.0150.00019.00
8.3.20.0000.00819.30
8.3.10.0000.00822.00
8.3.00.0080.00023.95
8.2.180.0120.00316.88
8.2.170.0150.00022.96
8.2.160.0090.00619.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.62
8.2.120.0080.00026.35
8.2.110.0080.00319.21
8.2.100.0130.00318.19
8.2.90.0030.00518.25
8.2.80.0060.00318.17
8.2.70.0080.00018.16
8.2.60.0000.01118.34
8.2.50.0050.00318.10
8.2.40.0030.00519.43
8.2.30.0060.00320.77
8.2.20.0040.00418.30
8.2.10.0050.00218.35
8.2.00.0070.00019.69
8.1.280.0120.00325.92
8.1.270.0150.00322.36
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.25
8.1.230.0080.00422.75
8.1.220.0030.00617.79
8.1.210.0000.00918.77
8.1.200.0040.00417.47
8.1.190.0000.00817.48
8.1.180.0000.00818.10
8.1.170.0040.00418.96
8.1.160.0070.00019.19
8.1.150.0040.00419.11
8.1.140.0070.00019.23
8.1.130.0070.00019.16
8.1.120.0040.00417.71
8.1.110.0050.00517.61
8.1.100.0030.00317.72
8.1.90.0000.00817.68
8.1.80.0040.00417.75
8.1.70.0030.00517.77
8.1.60.0000.00817.81
8.1.50.0060.00317.82
8.1.40.0030.00517.61
8.1.30.0000.00917.84
8.1.20.0030.00517.86
8.1.10.0000.00817.80
8.1.00.0050.00317.62
8.0.300.0070.00019.79
8.0.290.0060.00316.85
8.0.280.0040.00418.63
8.0.270.0040.00317.35
8.0.260.0030.00317.44
8.0.250.0000.00717.10
8.0.240.0000.00817.08
8.0.230.0000.00717.14
8.0.220.0030.00317.08
8.0.210.0000.00717.07
8.0.200.0000.00817.03
8.0.190.0030.00617.20
8.0.180.0030.00517.19
8.0.170.0000.00817.06
8.0.160.0080.00016.99
8.0.150.0100.00017.00
8.0.140.0030.00516.94
8.0.130.0050.00013.55
8.0.120.0000.00817.07
8.0.110.0070.00017.01
8.0.100.0040.00417.13
8.0.90.0000.00717.20
8.0.80.0050.01217.07
8.0.70.0000.00816.86
8.0.60.0000.00817.13
8.0.50.0030.00617.07
8.0.30.0110.00817.22
8.0.20.0060.01617.40
8.0.10.0000.00717.23
8.0.00.0150.00316.87
7.4.330.0000.00515.55
7.4.320.0060.00016.89
7.4.300.0070.00016.65
7.4.290.0000.00616.68
7.4.280.0000.00716.79
7.4.270.0000.00716.71
7.4.260.0040.00416.68
7.4.250.0000.00716.75
7.4.240.0040.00416.76
7.4.230.0040.00416.78
7.4.220.0040.00416.72
7.4.210.0070.00716.83
7.4.200.0070.00016.97
7.4.160.0080.01116.71
7.4.140.0070.01117.86
7.4.130.0030.01416.54
7.4.120.0070.01216.65
7.4.110.0100.00616.82
7.4.100.0090.00916.61
7.4.90.0130.01016.77
7.4.80.0130.01019.39
7.4.70.0070.01016.82
7.4.60.0170.00016.71
7.4.50.0040.00716.74
7.4.40.0100.00716.72
7.4.10.0040.01415.09
7.4.00.0050.01314.97
7.3.330.0030.00313.35
7.3.320.0030.00313.34
7.3.310.0000.00816.48
7.3.300.0030.00316.49
7.3.290.0040.00416.48
7.3.280.0060.00916.48
7.3.260.0130.00816.67
7.3.240.0110.01116.56
7.3.230.0060.00916.85
7.3.210.0030.01316.40
7.3.200.0140.00616.49
7.3.190.0150.00616.70
7.3.180.0060.00916.85
7.3.170.0130.00316.48
7.3.160.0060.00916.53
7.3.130.0040.01514.89
7.3.120.0130.00315.21
7.3.110.0120.00615.14
7.3.100.0040.00814.83
7.3.90.0100.00714.74
7.3.80.0060.00614.91
7.3.70.0030.00614.71
7.3.60.0000.01414.87
7.3.50.0080.00415.00
7.3.40.0070.00314.97
7.3.30.0000.01314.83
7.3.20.0090.00616.77
7.3.10.0050.00816.67
7.3.00.0050.00716.67
7.2.330.0060.01216.93
7.2.320.0080.00816.76
7.2.310.0100.00916.98
7.2.300.0100.00616.90
7.2.290.0090.01216.99
7.2.260.0090.01215.12
7.2.250.0030.01414.99
7.2.240.0040.01115.19
7.2.230.0090.00615.25
7.2.220.0030.00915.35
7.2.210.0030.01014.81
7.2.200.0040.01115.22
7.2.190.0100.00315.11
7.2.180.0070.00715.19
7.2.170.0030.01415.05
7.2.160.0080.00415.18
7.2.150.0040.00916.73
7.2.140.0100.00317.10
7.2.130.0080.00616.82
7.2.120.0080.01016.73
7.2.110.0060.00516.93
7.2.100.0030.01117.01
7.2.90.0080.00817.02
7.2.80.0420.00615.94
7.2.70.0500.00716.24
7.2.60.0470.01116.28
7.2.50.0420.01116.41
7.2.40.0490.01116.39
7.2.30.0560.01016.34
7.2.20.0560.00816.47
7.2.10.0550.01116.23
7.2.00.0450.00916.35
7.1.330.0000.01415.86
7.1.320.0070.00716.01
7.1.310.0090.00615.88
7.1.300.0080.00515.68
7.1.290.0070.00415.70
7.1.280.0060.00315.82
7.1.270.0070.00615.89
7.1.260.0000.00915.98
7.1.250.0050.01115.75
7.1.240.0060.00615.75
7.1.230.0110.00015.70
7.1.220.0040.01115.85
7.1.210.0060.00915.75
7.1.200.0030.01015.96
7.1.190.0620.00314.68
7.1.180.0770.00614.83
7.1.170.0910.01314.95
7.1.160.0610.01014.83
7.1.150.0750.00615.02
7.1.140.0580.00614.94
7.1.130.0620.00914.84
7.1.120.0610.00814.97
7.1.110.0700.00714.99
7.1.100.0730.00814.77
7.1.90.1220.00314.86
7.1.80.0810.00414.72
7.1.70.0230.00514.72
7.1.60.0430.01423.81
7.1.50.2020.01223.76
7.1.40.1600.01023.90
7.1.30.1860.01023.74
7.1.20.2170.00923.99
7.1.10.2080.01214.97
7.1.00.0820.00515.02
7.0.330.0060.00615.22
7.0.320.0030.01015.53
7.0.310.0070.00315.41
7.0.300.0030.01015.66
7.0.290.0060.00615.55
7.0.280.0060.00315.40
7.0.270.0030.00515.49
7.0.260.0030.01015.36
7.0.250.0000.00815.58
7.0.240.0040.00415.53
7.0.230.0070.00315.36
7.0.220.0100.00615.54
7.0.210.0070.00315.60
7.0.200.0030.00615.77
7.0.190.0030.00915.69
7.0.180.0030.01015.59
7.0.170.0060.00315.34
7.0.160.0110.00415.62
7.0.150.0000.01015.64
7.0.140.0110.00415.50
7.0.130.0040.00715.68
7.0.120.0030.00815.69
7.0.110.0070.00715.66
7.0.100.0030.01015.77
7.0.90.0070.00715.39
7.0.80.0030.00515.47
7.0.70.0030.01015.73
7.0.60.0030.00915.46
7.0.50.0000.00815.77
7.0.40.0000.00813.58
7.0.30.0030.00613.41
7.0.20.0030.00913.42
7.0.10.0040.00413.50
7.0.00.0050.00513.66
5.6.400.0030.01014.64
5.6.390.0090.00914.50
5.6.380.0000.01614.18
5.6.370.0060.00614.58
5.6.360.0110.00714.32
5.6.350.0000.01414.03
5.6.340.0060.00914.33
5.6.330.0100.00314.57
5.6.320.0030.01014.54
5.6.310.0030.00614.86
5.6.300.0090.00614.65
5.6.290.0070.00714.51
5.6.280.0030.00714.38
5.6.270.0110.00314.56
5.6.260.0000.00814.35
5.6.250.0060.00614.20
5.6.240.0030.00714.43
5.6.230.0040.00414.70
5.6.220.0050.00514.35
5.6.210.0100.00314.26
5.6.200.0070.00714.32
5.6.190.0040.01114.34
5.6.180.0000.01214.34
5.6.170.0130.00014.45
5.6.160.0070.00714.50
5.6.150.0070.00714.27
5.6.140.0000.01014.46
5.6.130.0030.01014.36
5.6.120.0060.00914.38
5.6.110.0060.00914.41
5.6.100.0000.00914.57
5.6.90.0120.00414.73
5.6.80.0090.00313.89
5.6.70.0090.00314.13
5.6.60.0030.01414.23
5.6.50.0060.00914.17
5.6.40.0070.00714.36
5.6.30.0030.00914.64
5.6.20.0100.00314.21
5.6.10.0110.00314.19
5.6.00.0070.01014.38

preferences:
52.64 ms | 400 KiB | 5 Q