3v4l.org

run code in 300+ PHP versions simultaneously
<?php function remove_bloat($page, $footerCode){ //SearchFix $page = str_replace("/s/","/search.php", $page); //Fix static link $page = str_replace('href="','href="/?load=', $page); $page = str_replace('href="/?load=/static','href="static', $page); $page = str_replace('href="/?load=magnet','href="magnet', $page); $page = str_replace('href="/?load=http','href="http', $page); $page = str_replace('<a href="/?load=/rss" class="rss" title="RSS"><img src="/static/img/rss_small.gif" alt="RSS" /></a>','',$page); //Change CSS links $page = str_replace('/css-new/','/css/', $page); //Remove links that is not needed $page = str_replace("<a href=\"/login\" title=\"Login\">Login</a> | ","", $page); $page = str_replace("<a href=\"/register\" title=\"Register\">Register</a> | ","", $page); $page = str_replace("<a href=\"/language\" title=\"Select language\">Language / Select language</a> |","", $page); //Switch view not yet supported $page = str_replace("<a href=\"/switchview.php?view=s\">Single</a>","<a href=\"#\" onClick=\"alert('This feature is not yet supported. I need to spend a long time adding support for cookies, if/when I do this feature will work.')\">Single</a>", $page); $page = str_replace("<div class=\"detailartist\"","<div class=\"detailartist\" style=\"display:none; visibility:hidden;\"", $page); //Remove detailed artist info that doesnt work, temporary disable comment page switching $page = str_replace("ajax_details_artinfo.php","blank.php", $page); //Add footer code $page = str_replace("</body>","$footerCode </body>", $page); return $page; } function get_data($url) { $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_USERAGENT,'TMB Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13'); curl_setopt( $ch, CURLOPT_ENCODING, "" ); curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt( $ch, CURLOPT_AUTOREFERER, true ); curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 ); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch,CURLOPT_MAXCONNECTS,320); curl_setopt($ch,CURLOPT_TIMEOUT,30); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,30); $data = curl_exec($ch); curl_close($ch); return $data; } function search_curl($url) { $ch = curl_init(); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 20); curl_setopt ($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11');// Only calling the head curl_setopt($ch, CURLOPT_HEADER, true); // header will be at output curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'HEAD'); // HTTP request is 'HEAD' $data = curl_exec($ch); curl_close($ch); return $data; } ?>

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.70.0090.00618.43
8.3.60.0030.01018.43
8.3.50.0160.00621.92
8.3.40.0090.00618.72
8.3.30.0090.00619.01
8.3.20.0040.00420.30
8.3.10.0030.00520.23
8.3.00.0040.00419.13
8.2.190.0120.00316.58
8.2.180.0160.00316.38
8.2.170.0000.01522.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0050.00226.16
8.2.120.0080.00022.06
8.2.110.0080.00022.30
8.2.100.0040.00718.03
8.2.90.0050.00518.96
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0080.00017.78
8.2.50.0120.00018.07
8.2.40.0030.00618.09
8.2.30.0040.00417.98
8.2.20.0030.00517.71
8.2.10.0070.00018.09
8.2.00.0090.00017.64
8.1.280.0090.00925.92
8.1.270.0080.00023.84
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00022.10
8.1.230.0080.00319.11
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00517.11
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00918.50
8.1.160.0000.00721.99
8.1.150.0040.00418.85
8.1.140.0050.00217.37
8.1.130.0000.00717.84
8.1.120.0040.00417.29
8.1.110.0000.00717.32
8.1.100.0030.00517.44
8.1.90.0040.00417.39
8.1.80.0000.00717.41
8.1.70.0050.00317.30
8.1.60.0080.00017.52
8.1.50.0000.00817.30
8.1.40.0030.00517.35
8.1.30.0000.00817.54
8.1.20.0000.00817.51
8.1.10.0070.00017.39
8.1.00.0070.00417.43
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.29
8.0.270.0000.00717.13
8.0.260.0000.00717.18
8.0.250.0000.00716.79
8.0.240.0030.00616.85
8.0.230.0030.00316.76
8.0.220.0000.00716.84
8.0.210.0030.00316.87
8.0.200.0030.00316.89
8.0.190.0040.00416.77
8.0.180.0070.00316.73
8.0.170.0040.00416.72
8.0.160.0040.00316.77
8.0.150.0040.00416.77
8.0.140.0000.00716.73
8.0.130.0050.00013.25
8.0.120.0000.00816.68
8.0.110.0000.00716.82
8.0.100.0070.00016.85
8.0.90.0040.00416.93
8.0.80.0090.00616.84
8.0.70.0040.00416.70
8.0.60.0000.00816.86
8.0.50.0030.00516.70
8.0.30.0120.00817.01
8.0.20.0070.01217.40
8.0.10.0070.00016.79
8.0.00.0120.00916.78
7.4.330.0000.00515.00
7.4.320.0000.00716.57
7.4.300.0030.00316.43
7.4.290.0000.00716.52
7.4.280.0050.00216.41
7.4.270.0020.00516.45
7.4.260.0070.00016.51
7.4.250.0000.00716.28
7.4.240.0040.00416.43
7.4.230.0070.00016.59
7.4.220.0130.00616.41
7.4.210.0100.00316.55
7.4.200.0040.00416.26
7.4.160.0140.00716.16
7.4.150.0100.01017.40
7.4.140.0050.01217.86
7.4.130.0050.01116.39
7.4.120.0100.01016.33
7.4.110.0090.00916.44
7.4.100.0070.01616.37
7.4.90.0140.00916.52
7.4.80.0040.01619.39
7.4.70.0100.00716.32
7.4.60.0100.00616.39
7.4.50.0030.00316.29
7.4.40.0110.00716.50
7.4.30.0130.00316.41
7.4.00.0120.00514.61
7.3.330.0050.00013.22
7.3.320.0000.00613.18
7.3.310.0000.00716.25
7.3.300.0000.00716.18
7.3.290.0110.00616.20
7.3.280.0110.00616.19
7.3.270.0130.01017.40
7.3.260.0160.00316.22
7.3.250.0090.00916.36
7.3.240.0030.01316.29
7.3.230.0070.01116.39
7.3.210.0070.01416.15
7.3.200.0070.01019.39
7.3.190.0170.00016.44
7.3.180.0060.00916.20
7.3.170.0090.00616.34
7.3.160.0130.00416.18
7.3.120.0060.01314.70
7.3.110.0070.01014.70
7.3.100.0040.01114.67
7.3.90.0060.00914.82
7.3.80.0060.01214.40
7.3.70.0030.01014.40
7.3.60.0080.00314.30
7.3.50.0090.00614.83
7.3.40.0120.00314.57
7.3.30.0060.00614.66
7.3.20.0090.00316.28
7.3.10.0070.00716.26
7.3.00.0060.00616.61
7.2.330.0070.01016.63
7.2.320.0100.00716.52
7.2.310.0100.00716.49
7.2.300.0140.00716.44
7.2.290.0060.00916.31
7.2.250.0070.01115.06
7.2.240.0070.01015.04
7.2.230.0110.00414.88
7.2.220.0030.01414.63
7.2.210.0060.00614.82
7.2.200.0030.01014.96
7.2.190.0030.00914.78
7.2.180.0030.01015.03
7.2.170.0030.01214.81
7.2.60.0000.01216.63
7.1.330.0120.00315.37
7.1.320.0090.00615.58
7.1.310.0060.00615.69
7.1.300.0030.01015.72
7.1.290.0070.00715.44
7.1.280.0030.00615.51
7.1.270.0030.00915.59
7.1.260.0060.00615.50
7.1.200.0070.00715.59
7.1.100.0040.00917.63
7.1.70.0030.00616.77
7.1.60.0130.01319.32
7.1.50.0140.00716.53
7.1.00.0030.07722.41
7.0.200.0000.00916.61
7.0.140.0000.07322.01
7.0.70.3970.02320.03
7.0.60.0200.07719.99
7.0.50.0170.07717.85
7.0.40.0000.08320.10
7.0.30.0600.06720.12
7.0.20.0330.07020.05
7.0.10.0330.07320.09
7.0.00.0000.04720.23
5.6.280.0030.07321.15
5.6.210.0000.04320.56
5.6.200.0030.04018.25
5.6.190.0070.08720.46
5.6.180.0130.06320.36
5.6.170.0270.03720.76
5.6.160.0130.06720.55
5.6.150.0070.05018.17
5.6.140.0070.07718.21
5.6.130.0130.06318.21
5.6.120.0000.04321.00
5.6.110.0170.08021.02
5.6.100.0130.06721.00
5.6.90.0070.04021.00
5.6.80.0130.06720.41
5.6.70.0030.07320.43
5.5.350.0030.08320.46
5.5.340.0100.07717.94
5.5.330.0030.08320.47
5.5.320.0000.04720.21
5.5.310.0100.04720.38
5.5.300.0000.04318.05
5.5.290.0100.07718.00
5.5.280.0070.03720.90
5.5.270.0070.08320.76
5.5.260.0070.07320.99
5.5.250.0100.04320.67
5.5.240.0070.06720.32
5.4.450.0370.05019.65
5.4.440.0730.06019.34
5.4.430.0800.06319.45
5.4.420.0670.00019.38
5.4.410.0630.00019.21
5.4.400.0630.00019.27
5.4.390.0630.00019.16
5.4.380.0700.00019.13
5.4.370.0670.00019.11
5.4.360.0630.00019.16
5.4.350.0630.00019.13
5.4.340.0630.00019.07
5.4.320.0070.03612.54
5.4.310.0100.03412.53
5.4.300.0060.03512.53
5.4.290.0080.03412.53
5.4.280.0040.03612.43
5.4.270.0060.03512.43
5.4.260.0080.03412.43
5.4.250.0060.03612.43
5.4.240.0100.03112.42
5.4.230.0060.04112.42
5.4.220.0080.03612.42
5.4.210.0040.03712.42
5.4.200.0070.03612.41
5.4.190.0120.03512.42
5.4.180.0030.04012.41
5.4.170.0060.04712.43
5.4.160.0050.04012.42
5.4.150.0060.03912.41
5.4.140.0040.03812.09
5.4.130.0080.03412.09
5.4.120.0050.03812.05
5.4.110.0050.03612.04
5.4.100.0090.03212.04
5.4.90.0030.03912.04
5.4.80.0070.03612.04
5.4.70.0060.03512.04
5.4.60.0050.03612.03
5.4.50.0050.03612.04
5.4.40.0060.04012.03
5.4.30.0060.03612.02
5.4.20.0050.03612.02
5.4.10.0090.03212.02
5.4.00.0040.03711.51
5.3.290.0060.04012.80
5.3.280.0060.03712.71
5.3.270.0080.03612.72
5.3.260.0050.03912.72
5.3.250.0080.03512.72
5.3.240.0040.03712.72
5.3.230.0080.03412.71
5.3.220.0060.03512.68
5.3.210.0060.03712.68
5.3.200.0050.03612.68
5.3.190.0060.03712.68
5.3.180.0060.03512.67
5.3.170.0060.03512.68
5.3.160.0060.03612.67
5.3.150.0080.03712.67
5.3.140.0020.04112.67
5.3.130.0080.03612.66
5.3.120.0080.03612.66
5.3.110.0050.04012.66
5.3.100.0090.03812.15
5.3.90.0060.03512.13
5.3.80.0100.03812.13
5.3.70.0030.03812.13
5.3.60.0050.04312.11
5.3.50.0080.04112.05
5.3.40.0080.03412.05
5.3.30.0060.03512.02
5.3.20.0040.03711.79
5.3.10.0050.03511.76
5.3.00.0040.03711.75
5.2.170.0070.0289.25
5.2.160.0030.0319.25
5.2.150.0100.0359.26
5.2.140.0040.0319.25
5.2.130.0060.0289.21
5.2.120.0030.0309.21
5.2.110.0030.0309.21
5.2.100.0040.0289.21
5.2.90.0070.0269.21
5.2.80.0060.0289.21
5.2.70.0040.0319.21
5.2.60.0080.0279.17
5.2.50.0040.0319.13
5.2.40.0050.0289.11
5.2.30.0030.0329.08
5.2.20.0070.0279.07
5.2.10.0010.0318.98
5.2.00.0050.0288.84
5.1.60.0040.0238.13
5.1.50.0050.0238.12
5.1.40.0060.0248.10
5.1.30.0050.0248.45
5.1.20.0050.0268.47
5.1.10.0040.0268.20
5.1.00.0050.0248.20
5.0.50.0040.0206.68
5.0.40.0040.0186.54
5.0.30.0030.0306.36
5.0.20.0030.0196.31
5.0.10.0020.0206.29
5.0.00.0050.0296.29
4.4.90.0050.0134.78
4.4.80.0040.0144.75
4.4.70.0030.0154.76
4.4.60.0030.0144.75
4.4.50.0030.0144.77
4.4.40.0040.0304.70
4.4.30.0030.0224.76
4.4.20.0040.0154.84
4.4.10.0030.0144.85
4.4.00.0030.0314.76
4.3.110.0000.0184.67
4.3.100.0040.0154.66
4.3.90.0040.0134.63
4.3.80.0020.0254.58
4.3.70.0020.0154.63
4.3.60.0010.0164.63
4.3.50.0030.0144.63
4.3.40.0020.0254.54
4.3.30.0000.0183.34
4.3.20.0020.0153.32
4.3.10.0040.0133.28
4.3.00.0030.02313.28

preferences:
45.7 ms | 401 KiB | 5 Q