3v4l.org

run code in 300+ PHP versions simultaneously
<? 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 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 7.1.26 - 7.1.33, 7.2.17 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<? 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 8.0.13
Warning: 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: Uncaught Error: Failed opening required 'func/curl.busquedas.php' (include_path='.:') in /in/NbigJ:13 Stack trace: #0 {main} thrown in /in/NbigJ on line 13
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.36, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.4.33
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 7.3.32 - 7.3.33, 7.4.26
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 7.1.25, 7.2.0 - 7.2.13
Notice: Undefined variable: ser in /in/NbigJ on line 11 Warning: require_once(): open_basedir restriction in effect. File(func/curl.busquedas.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/NbigJ on line 13 Warning: require_once(func/curl.busquedas.php): failed to open stream: Operation not permitted 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.

preferences:
292.63 ms | 402 KiB | 389 Q