3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? if(isset($_GET['p']) && $_GET['p'] != "" && $_GET['p'] > 0) { $p = (int)$_GET['p']; } else { $p = 0; } $start = $p*1 . '1'; $tube = "http://gdata.youtube.com/feeds/api/videos?q=$ser&duration=short&start-index=$start&max-results=10&v=2&alt=rss&prettyprint=true"; require_once "func/curl.busquedas.php"; $sxm = google_url($tube); $oxm = new SimpleXMLElement($sxm); $total1 = $oxm->channel->item->pubDate; $video = $oxm->channel->item->children("media",true)->group->children("yt",true)->videoid; if($total1) { foreach($oxm->channel->item as $e){ $titulo = $e->title; $url = $e->children("media",true)->group->children("yt",true)->videoid; $titulo = substr($titulo,0,70); echo' <li class="list-group-item result even" id="'.$url.'"> <h2><em>'.$titulo.'</em></h2> <p>Size: 10.3 MB | Source: youtube.com</p> <div class="action container"> <div class="button"> <a href="http://www.music-clips.net/api/'.$url.'/mp3/" class="download btn btn-info btn-small" target="_blank">Download</a> '; echo" <a href=\"#\" onclick=\"LoadVideo('$url');return false;\" class=\"listen btn btn-info btn-small\">Listen</a> </div> </div> </li>"; } } ?>
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: ser in /in/NbigJ on line 11 Warning: require_once(func/curl.busquedas.php): failed to open stream: No such file or directory in /in/NbigJ on line 13 Fatal error: require_once(): Failed opening required 'func/curl.busquedas.php' (include_path='.:') in /in/NbigJ on line 13
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: ser in /in/NbigJ on line 11 Fatal error: File not found: func/curl.busquedas.php in /in/NbigJ on line 13
Process exited with code 255.
Output for 4.3.0 - 5.3.29
<? if(isset($_GET['p']) && $_GET['p'] != "" && $_GET['p'] > 0) { $p = (int)$_GET['p']; } else { $p = 0; } $start = $p*1 . '1'; $tube = "http://gdata.youtube.com/feeds/api/videos?q=$ser&duration=short&start-index=$start&max-results=10&v=2&alt=rss&prettyprint=true"; require_once "func/curl.busquedas.php"; $sxm = google_url($tube); $oxm = new SimpleXMLElement($sxm); $total1 = $oxm->channel->item->pubDate; $video = $oxm->channel->item->children("media",true)->group->children("yt",true)->videoid; if($total1) { foreach($oxm->channel->item as $e){ $titulo = $e->title; $url = $e->children("media",true)->group->children("yt",true)->videoid; $titulo = substr($titulo,0,70); echo' <li class="list-group-item result even" id="'.$url.'"> <h2><em>'.$titulo.'</em></h2> <p>Size: 10.3 MB | Source: youtube.com</p> <div class="action container"> <div class="button"> <a href="http://www.music-clips.net/api/'.$url.'/mp3/" class="download btn btn-info btn-small" target="_blank">Download</a> '; echo" <a href=\"#\" onclick=\"LoadVideo('$url');return false;\" class=\"listen btn btn-info btn-small\">Listen</a> </div> </div> </li>"; } } ?>