3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(0); require_once 'Zend/Loader.php'; Zend_Loader::loadClass('Zend_Gdata_YouTube'); Zend_Loader::loadClass('Zend_Gdata_AuthSub'); Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); function printVideoEntry($videoEntry) { $ver = array('title' => $videoEntry->getVideoTitle(), 'desc' => $videoEntry->getVideoDescription(), 'category' => $videoEntry->getVideoCategory(), 'tags' => implode(", ", $videoEntry->getVideoTags()), 'video' => $videoEntry->getVideoWatchPageUrl()); return $ver; } if($_SERVER['REQUEST_METHOD'] == "POST") { function kanalgetir($kanal){ $kanal = parse_url($kanal); $kanal = explode("/",$kanal['path']); return $kanal[2]; } $knl = $_POST['url']; if(parse_url($knl, PHP_URL_HOST)) { $knl = kanalgetir($knl); } else { $knl = $knl; } $kanal = $_POST['kanal']; $dir = "C:/wamp/www/tr/dl/video/"; $yt = new Zend_Gdata_YouTube(); $videoFeed = $yt->getUserUploads($knl); foreach ($videoFeed as $entry) { $ver = printVideoEntry($entry); $bolunecek = dosyaindir($ver['video']); $name = pathinfo($bolunecek, PATHINFO_BASENAME); $ext = pathinfo($bolunecek, PATHINFO_EXTENSION); ytyukle ($kanal, $dir.$name, $ext, $ver['title'], $ver['desc'], '', $ver['category']); $dosyasil = unlink($dir.$name); } echo '<div style="width:250px;center;margin: 0 auto;"> <button class="btn btn-success"> <i class="icon icon-ok-circle icon-white"></i> Video Başarıyla Yüklendi... </button> </div>'; exit; } ?> <DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>YT Up/Down Bot</title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script> <script type="text/javascript"> $(function(){ $('#bot').submit(function(event){ $('#bas').html('<div style="width:200px;text-align:center;margin: 0 auto;"><div class="progress progress-striped active"><div class="bar" style="width: 100%;"></div></div><p>Video Bilgileri Alınıyor...</p></div>'); var data = $(this).serialize(); $.post('index.php?islem=ytbot', data) .success(function(result){ $('#bas').html(result); }) .error(function(){ console.log('Error loading page'); }) return false; }); }); </script> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- Le styles --> <link href="assets/css/bootstrap.min.css" rel="stylesheet"> <style> body { padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */ } </style> <link href="assets/css/bootstrap-responsive.min.css" rel="stylesheet"> <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="../assets/js/html5shiv.js"></script> <![endif]--> <!-- Fav and touch icons --> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png"> <link rel="shortcut icon" href="../assets/ico/favicon.png"> </head> <body> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="brand" href="index.php">YT Up/Down Bot</a> <div class="nav-collapse collapse"> <ul class="nav"> <li class="dropdown"> <ul class="dropdown-menu"> </ul> </li> <li><a href="bots.php">Bot Listesi</a></li> <li><a href="botlar.php">Video Yükle</a></li> <li><a href="index.php?islem=ytbot">Youtube Kanal Çekme</a></li <li class="dropdown"> <ul class="dropdown-menu"> </ul> </li> <li><a href="index.php?islem=hesap">Hesap Ayarları</a></li> <li><a href="index.php?islem=ythesap">Youtube Hesabı Ekle</a></li> <li><a href="http://109.73.64.148/destek/">Bot İstekleri</a></li> <li><a href="cikis.php">Çıkış</a></li> </ul> </div><!--/.nav-collapse --> </div> </div> </div> <div class="container"> <form id="bot" method="post" class="well"> BİLGİ: Youtube kanal botu sadece çektiğiniz kanalın en son yüklediği 25 videoyu kanalınıza çeker! <br /> <h2>Youtube Kanal Çek</h2> <br /> <input type="text" name="url" class="span5" placeholder="Youtube Kanal Linki veya Kanal ID"/></br> <div class="control-group"> <label class="control-label" for="select01">Kanalınız</label> <div class="controls"> <select name="kanal" id="select"> <?php $select = mysql_query("SELECT * FROM ythesap WHERE hesapid = '".$_SESSION['uyeid']."'"); while($row = mysql_fetch_row($select)) { echo '<option value="'.$row[0].'">'.$row[2].'</option>'; } ?> </select> </div> </div> <button class="btn btn-primary">Yüklemeyi Başlat</button> <button class="btn" type="reset">Temizle</button> </form> <div id="bas"></div> </div> <!-- /container --> <!-- Le javascript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="assets/js/jquery.js"></script> <script src="assets/js/bootstrap-transition.js"></script> <script src="assets/js/bootstrap-alert.js"></script> <script src="assets/js/bootstrap-modal.js"></script> <script src="assets/js/bootstrap-dropdown.js"></script> <script src="assets/js/bootstrap-scrollspy.js"></script> <script src="assets/js/bootstrap-tab.js"></script> <script src="assets/js/bootstrap-tooltip.js"></script> <script src="assets/js/bootstrap-popover.js"></script> <script src="assets/js/bootstrap-button.js"></script> <script src="assets/js/bootstrap-collapse.js"></script> <script src="assets/js/bootstrap-carousel.js"></script> <script src="assets/js/bootstrap-typeahead.js"></script> </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)
8.3.60.0070.00716.88
8.3.50.0180.01022.92
8.3.40.0040.01118.98
8.3.30.0060.00919.04
8.3.20.0070.00020.18
8.3.10.0000.00823.53
8.3.00.0050.00319.51
8.2.180.0070.01117.00
8.2.170.0090.00618.94
8.2.160.0030.01022.96
8.2.150.0000.00824.18
8.2.140.0100.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00021.09
8.2.110.0060.00322.11
8.2.100.0120.00017.78
8.2.90.0090.00319.07
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0000.00917.80
8.2.50.0050.00318.07
8.2.40.0090.00019.95
8.2.30.0020.00518.21
8.2.20.0040.00417.86
8.2.10.0000.00818.19
8.2.00.0030.00617.86
8.1.280.0070.01425.92
8.1.270.0130.00723.91
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00323.71
8.1.230.0090.00319.01
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00617.38
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0080.00018.77
8.1.160.0080.00022.07
8.1.150.0030.00518.80
8.1.140.0000.00817.35
8.1.130.0070.00017.86
8.1.120.0040.00417.36
8.1.110.0000.00817.28
8.1.100.0000.00817.51
8.1.90.0040.00417.50
8.1.80.0040.00417.48
8.1.70.0040.00417.42
8.1.60.0060.00317.67
8.1.50.0030.00617.58
8.1.40.0000.00817.45
8.1.30.0040.00417.62
8.1.20.0040.00417.69
8.1.10.0070.00017.53
8.1.00.0040.00417.47
8.0.300.0000.00818.77
8.0.290.0090.00017.00
8.0.280.0000.00718.60
8.0.270.0070.00017.28
8.0.260.0000.00617.25
8.0.250.0000.00717.04
8.0.240.0020.00517.13
8.0.230.0030.00317.04
8.0.220.0030.00517.11
8.0.210.0000.00716.93
8.0.200.0030.00317.12
8.0.190.0060.00317.01
8.0.180.0030.00717.02
8.0.170.0040.00417.01
8.0.160.0040.00417.15
8.0.150.0040.00416.96
8.0.140.0000.00716.91
8.0.130.0000.00613.50
8.0.120.0050.00316.96
8.0.110.0050.00317.08
8.0.100.0000.00717.09
8.0.90.0040.00417.07
8.0.80.0120.00417.03
8.0.70.0030.00517.03
8.0.60.0040.00416.99
8.0.50.0040.00416.88
8.0.30.0050.01717.06
8.0.20.0070.01217.40
8.0.10.0030.00616.89
8.0.00.0120.00716.72
7.4.330.0000.00515.15
7.4.320.0000.00616.55
7.4.300.0060.00016.48
7.4.290.0050.00316.47
7.4.280.0030.00316.56
7.4.270.0000.00716.70
7.4.260.0030.00316.68
7.4.250.0080.00016.62
7.4.240.0020.00516.63
7.4.230.0020.00516.54
7.4.220.0070.01116.76
7.4.210.0130.01016.57
7.4.200.0000.00716.68
7.4.160.0070.01016.44
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0080.00916.57
7.4.120.0100.00716.46
7.4.110.0110.01116.60
7.4.100.0170.00016.55
7.4.90.0040.01316.46
7.4.80.0060.01619.39
7.4.70.0060.00916.54
7.4.60.0030.01916.38
7.4.50.0000.00816.70
7.4.40.0170.00416.52
7.4.30.0060.01016.64
7.4.00.0070.00815.13
7.3.330.0070.00013.34
7.3.320.0000.00513.30
7.3.310.0030.00316.39
7.3.300.0000.00716.22
7.3.290.0100.01016.36
7.3.280.0090.00816.34
7.3.270.0060.01217.40
7.3.260.0090.01116.34
7.3.250.0110.00616.40
7.3.240.0170.00016.43
7.3.230.0100.00716.39
7.3.210.0120.00416.41
7.3.200.0110.00619.39
7.3.190.0110.00816.31
7.3.180.0100.00616.36
7.3.170.0130.00316.40
7.3.160.0130.00316.30
7.2.330.0100.00716.75
7.2.320.0170.00016.38
7.2.310.0180.00616.59
7.2.300.0060.01216.63
7.2.290.0110.00916.46
7.2.60.0040.01116.76
7.2.00.0030.01519.41
7.1.200.0090.00315.52
7.1.100.0040.00417.95
7.1.70.0060.01517.10
7.1.60.0120.00919.40
7.1.50.0030.02116.57
7.1.00.0030.07722.36
7.0.200.0020.00516.63
7.0.140.0070.07022.02
7.0.100.0370.08019.96
7.0.90.0030.08719.91
7.0.80.0030.09319.97
7.0.70.0070.04720.01
7.0.60.0070.07319.94
7.0.50.0230.08020.34
7.0.40.0100.07719.98
7.0.30.0130.04320.10
7.0.20.0070.04720.05
7.0.10.0130.07320.07
7.0.00.0100.06020.13
5.6.280.0000.07321.13
5.6.250.0100.08020.57
5.6.240.0130.08020.49
5.6.230.0100.04020.51
5.6.220.0130.07020.59
5.6.210.0070.07720.63
5.6.200.0170.08021.05
5.6.190.0030.05020.98
5.6.180.0130.06021.01
5.6.170.0070.09321.01
5.6.160.0070.08020.94
5.6.150.0100.05021.01
5.6.140.0030.08721.05
5.6.130.0070.05320.99
5.6.120.0000.04721.05
5.6.110.0000.04721.10
5.6.100.0070.05321.00
5.6.90.0030.06720.91
5.6.80.0070.07320.45
5.6.70.0130.07320.45
5.6.60.0030.04320.29
5.6.50.0030.04020.42
5.6.40.0100.03720.38
5.6.30.0030.04320.25
5.6.20.0000.04320.42
5.6.10.0170.03320.26
5.6.00.0030.04020.33
5.5.380.0070.08320.42
5.5.370.0000.06020.33
5.5.360.0070.07720.54
5.5.350.0070.07720.42
5.5.340.0100.08020.88
5.5.330.0030.04720.84
5.5.320.0170.08020.75
5.5.310.0130.07320.89
5.5.300.0070.05320.87
5.5.290.0130.08020.89
5.5.280.0100.07320.84
5.5.270.0200.07020.86
5.5.260.0030.08020.79
5.5.250.0070.05320.66
5.5.240.0100.03720.11
5.5.230.0130.07020.27
5.5.220.0070.04320.14
5.5.210.0100.03720.24
5.5.200.0070.03720.16
5.5.190.0070.05020.13
5.5.180.0030.04320.20
5.5.160.0100.03020.21
5.5.150.0070.03020.15
5.5.140.0030.04020.06
5.5.130.0030.04020.15
5.5.120.0030.04320.18
5.5.110.0070.04019.96
5.5.100.0100.05020.05
5.5.90.0000.03320.10
5.5.80.0030.03319.95
5.5.70.0030.05020.04
5.5.60.0030.04019.98
5.5.50.0100.03020.12
5.5.40.0100.03320.09
5.5.30.0130.02720.12
5.5.20.0030.04020.02
5.5.10.0100.03320.04
5.5.00.0030.04319.89
5.4.450.0100.06319.39
5.4.440.0100.03719.49
5.4.430.0070.08019.45
5.4.420.0000.04719.27
5.4.410.0130.03719.36
5.4.400.0000.06719.10
5.4.390.0100.04319.19
5.4.380.0130.08019.01
5.4.370.0200.03318.88
5.4.360.0070.04019.13
5.4.350.0070.03719.23
5.4.340.0030.03719.23
5.4.320.0030.03719.10
5.4.310.0000.04019.13
5.4.300.0000.03319.23
5.4.290.0070.03319.15
5.4.280.0030.03719.05
5.4.270.0030.04319.04
5.4.260.0030.03719.16
5.4.250.0030.03719.12
5.4.240.0030.03319.04
5.4.230.0030.03719.20
5.4.220.0000.05019.00
5.4.210.0000.04019.09
5.4.200.0030.04019.18
5.4.190.0030.03718.84
5.4.180.0030.03319.02
5.4.170.0030.04019.12
5.4.160.0070.03719.03
5.4.150.0070.03718.83
5.4.140.0030.03716.37
5.4.130.0030.03716.36
5.4.120.0030.04016.34
5.4.110.0000.04316.48
5.4.100.0030.03716.52
5.4.90.0000.03716.43
5.4.80.0000.03716.51
5.4.70.0070.03316.38
5.4.60.0030.03316.46
5.4.50.0070.03016.32
5.4.40.0070.05016.46
5.4.30.0030.03716.49
5.4.20.0130.02716.37
5.4.10.0000.04016.42
5.4.00.0000.07315.82
5.3.290.0000.04014.61
5.3.280.0030.05014.61
5.3.270.0030.04314.62
5.3.260.0000.03714.61
5.3.250.0000.04314.74
5.3.240.0100.03714.59
5.3.230.0030.03314.57
5.3.220.0000.04014.61
5.3.210.0100.03014.70
5.3.200.0030.05714.56
5.3.190.0000.03714.53
5.3.180.0100.03014.73
5.3.170.0000.04014.52
5.3.160.0070.04014.65
5.3.150.0130.02714.66
5.3.140.0030.03714.55
5.3.130.0070.06314.64
5.3.120.0030.05014.70
5.3.110.0030.03714.51
5.3.100.0100.07314.20
5.3.90.0070.05713.99
5.3.80.0130.07014.04
5.3.70.0030.07714.11
5.3.60.0070.05014.04
5.3.50.0100.06014.02
5.3.40.0100.06714.04
5.3.30.0170.06013.96
5.3.20.0100.06013.75
5.3.10.0070.06013.77
5.3.00.0130.06713.66
5.2.170.0130.04711.21
5.2.160.0070.06311.25
5.2.150.0000.04011.24
5.2.140.0070.06011.29
5.2.130.0100.05311.20
5.2.120.0070.05311.13
5.2.110.0100.05711.19
5.2.100.0070.03310.99
5.2.90.0030.03711.23
5.2.80.0070.06311.20
5.2.70.0130.04711.19
5.2.60.0070.05711.12
5.2.50.0030.04311.16
5.2.40.0070.03311.06
5.2.30.0070.06011.15
5.2.20.0070.04710.96
5.2.10.0000.04710.94
5.2.00.0030.06010.90
5.1.60.0030.0509.89
5.1.50.0070.05710.03
5.1.40.0000.05310.03
5.1.30.0030.05710.30
5.1.20.0100.03310.42
5.1.10.0030.03710.12
5.1.00.0030.05710.10
5.0.50.0000.0508.67
5.0.40.0070.0378.51
5.0.30.0030.0708.39
5.0.20.0000.0408.09
5.0.10.0070.0438.22
5.0.00.0030.0508.09
4.4.90.0030.0407.67
4.4.80.0070.0277.67
4.4.70.0070.0307.67
4.4.60.0030.0337.67
4.4.50.0000.0307.67
4.4.40.0000.0607.67
4.4.30.0070.0337.67
4.4.20.0070.0307.67
4.4.10.0030.0307.67
4.4.00.0030.0577.67
4.3.110.0070.0307.67
4.3.100.0000.0337.67
4.3.90.0100.0237.67
4.3.80.0100.0507.67
4.3.70.0070.0307.67
4.3.60.0000.0377.67
4.3.50.0030.0277.67
4.3.40.0070.0477.67
4.3.30.0070.0277.67
4.3.20.0000.0237.67
4.3.10.0000.0207.67
4.3.00.0030.0337.67

preferences:
46.14 ms | 401 KiB | 5 Q