3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Youtube Downloader</title> <meta name="keywords" content="Video downloader, download youtube, video download, youtube video, youtube downloader, download youtube FLV, download youtube MP4, download youtube 3GP, php video downloader" /> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> <style type="text/css"> body { padding-top: 40px; padding-bottom: 40px; background-color: #f5f5f5; } .form-download { max-width: 300px; padding: 19px 29px 29px; margin: 0 auto 20px; background-color: #fff; border: 1px solid #e5e5e5; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05); -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05); box-shadow: 0 1px 2px rgba(0,0,0,.05); } .form-download .form-download-heading, .form-download .checkbox { margin-bottom: 10px; } .form-download input[type="text"] { font-size: 16px; height: auto; margin-bottom: 15px; padding: 7px 9px; } .userscript { float: right; margin-top: 5px } </style> </head> <body> <form class="form-download" method="get" id="download" action="getvideo.php"> <h1 class="form-download-heading">Youtube Downloader</h1> <input type="text" name="videoid" id="videoid" size="40" placeholder="VideoID" /> <label class="checkbox"> <input type="checkbox" name="debug" id="debug"> Show Debug Info </label> <input class="btn btn-primary" type="submit" name="type" id="type" value="Download" /> <p>Put in just the ID bit, the part after v=.</p> <p>Example: http://www.youtube.com/watch?v=<b>Fw-BM-Mqgeg</b></p> <!-- @TODO: Prepend the base URI --> <?PHP function is_chrome(){ $agent=$_SERVER['HTTP_USER_AGENT']; if( preg_match("/like\sGecko\)\sChrome\//", $agent) ){ // if user agent is google chrome if(!strstr($agent, 'Iron')) // but not Iron return true; } return false; // if isn't chrome return false } if(is_chrome()){ echo '<a href="ytdl.user.js" class="userscript btn btn-mini" title="Install chrome extension to view a 'Download' link to this application on Youtube video pages."> Install Chrome Extension </a>'; } ?> </form> </body> </html>

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)
5.6.120.0270.03720.90
5.6.110.0070.04320.98
5.6.100.0130.06321.14
5.6.90.0030.04321.01
5.6.80.0170.07720.38
5.6.70.3530.03320.37
5.5.280.0030.05720.98
5.5.270.0100.07720.89
5.5.260.0130.08320.87
5.5.250.0030.04020.59
5.5.240.0200.04320.15
5.4.440.0670.05019.54
5.4.430.0600.05319.11
5.4.420.0630.05319.61
5.4.410.0830.05019.31
5.4.400.0870.06719.29
5.4.390.0970.07018.94
5.4.380.0520.05818.94
5.4.370.0520.04818.95
5.4.360.0470.05318.75
5.4.350.0430.04515.62
5.4.340.0450.04415.60
5.4.320.0480.04815.90
5.4.310.0390.04915.64
5.4.300.0430.04515.85
5.4.290.0390.04615.87
5.4.280.0510.05015.75
5.4.270.0490.05015.81
5.4.260.0420.04515.76
5.4.250.0450.04515.81
5.4.240.0270.03914.68
5.4.230.0230.04314.66
5.4.220.0290.04214.65
5.4.210.0240.04014.52
5.4.200.0270.04113.86
5.4.190.0240.04414.55
5.4.180.0230.04414.60
5.4.170.0280.04314.62
5.4.160.0250.04414.55
5.4.150.0280.03914.51
5.4.140.0250.04213.61
5.4.130.0340.04213.50
5.4.120.0290.04213.49
5.4.110.0310.03713.57
5.4.100.0330.04213.48
5.4.90.0320.04613.51
5.4.80.0300.04613.49
5.4.70.0320.03713.50
5.4.60.0310.04113.52
5.4.50.0370.03613.43
5.4.40.0320.04213.50
5.4.30.0290.04113.45
5.4.20.0260.04413.46
5.4.10.0290.04113.50
5.4.00.0280.04312.96
5.3.290.0340.05313.69
5.3.280.0210.04613.34
5.3.270.0230.04513.35
5.3.260.0300.03913.35
5.3.250.0260.04113.36
5.3.240.0290.03913.32
5.3.230.0270.04913.34
5.3.220.0280.04513.39
5.3.210.0270.04713.26
5.3.200.0300.04113.26
5.3.190.0310.04113.27
5.3.180.0300.04013.30
5.3.170.0250.04513.30
5.3.160.0290.04313.27
5.3.150.0290.04413.29
5.3.140.0320.04513.32
5.3.130.0320.05113.29
5.3.120.0330.04513.28
5.3.110.0320.04413.29
5.3.100.0330.03912.81
5.3.90.0250.04112.74
5.3.80.0310.04012.73
5.3.70.0310.04012.70
5.3.60.0320.04012.67
5.3.50.0330.03612.71
5.3.40.0290.04112.73
5.3.30.0300.03712.61
5.3.20.0280.04012.35
5.3.10.0330.04212.34
5.3.00.0330.04412.34

preferences:
142.47 ms | 1394 KiB | 7 Q