3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ob_start(); require_once("assets/sys.php"); require_once("assets/config.php"); ini_set('memory_limit', '-1'); /* $track_id $title $sclink $pic $buy $user $duration - duration($duration) $track_description */ $title=htmlentities($title); $track_description=htmlentities($track_description); if(!$pic){ $pic='http://dummyimage.com/100x100/000000/ffffff&amp;text=No+PIC'; } $ajax=$_GET['ajax']; $str=$title." ".$user; $str1=$title." ".$user; require_once("assets/url_slug.php"); $str=url_slug($str); $dlink=download_track($location2); $size=file_size($dlink, "MB"); $pagetitle=$title." by ".$user." | ".$sitename; $description="Download ".$title." by ".$user." using ".$sitename." fast, simple and free"; $metakeywords=$str1.", ".$title.", ".$user.", ".$metakeywords; $time_start = microtime(true); $time_end = $time_start+240; $time = $time_end - $time_start; require_once("assets/header.php"); ?> <div id="response"> <script type="text/javascript"> var url="<?=$str?>.html"; $(function(){ time_start = <?=$time_start?>; time_end = new Date().getTime() / 1000; time_valid = (time_end-time_start); if(time_valid<241){ $("a#mirrora").show(); } }); </script> <h2 style="margin-bottom: 10px;">Download <?=$title?> by <?=$user?></h2> <div id="dl"> <img class="artwork" src="<?=$pic?>" alt="<?=$title?>" /> <div class="dl2"> <span class="h3">Title:</span> &nbsp; <?=$title?><br/> <span class="h3">Size:</span> &nbsp; <?=$size?><br/> <span class="h3">Duration:</span> &nbsp; <?=duration($duration)?> </div> <a href="<?=$sclink?>" target="_blank" rel="nofollow" style="clear:both;float:right;text-decoration:underline;">View on SoundCloud</a> </div> <div class="dl-lnk"><a class="btn" href="download.php?url=<?=$track_url?>&amp;d=1">Download Now</a> &nbsp; <a class="btn hide" id="mirrora" href="<?=$location2?>">Download Mirror</a></div> <div class="plink hide" style="text-align: center;border-top: 1px solid rgb(221, 221, 221);padding: 10px 0px 0px;">Permalink: <input type="text" style="width:350px;" value="<?=$site_url?>/<?=$str?>.html" readonly="readonly" onclick="this.focus();this.select()" /> <a href="<?=$str?>.html">view</a></div> </div> <div id="description" style="text-align:center;"> <?=nl2br($track_description)?> </div> <a href="index.php" style="text-align:center;margin-bottom:10px;display:block;text-decoration:underline;margin-top:10px;">Go Back</a> <?php require_once("assets/footer.php"); $output = ob_get_contents(); ob_end_clean(); $rewrite_html=1; make_page($str, $output); $str if($_GET['d']==1){ header("Location: $dlink"); exit(); } else { if($ajax==1){ //do nothing } else { $str=$str."-".$track_id; header("Location: $str.html"); exit(); } } echo $output; ?>
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'if' (T_IF) in /in/L4rKh on line 76
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_IF in /in/L4rKh on line 76
Process exited with code 255.