3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cont = json_decode(file_get_contents('http://gdata.youtube.com/feeds/api/playlists/PLMiRl9MF7bqhLJv1PKCuxpAFCUG5AJCeT/?v=2&alt=json&feature=plcp')); $feed = $cont->feed->entry; $videoID_array = array(); if(count($feed)) { foreach($feed as $item) array_push($videoID_array, $item->{'media$group'}->{'yt$videoid'}->{'$t'}); } foreach ($videoID_array as $arrayItem) { echo "livestreamer.exe -p C:\Users\Gabriele.coen\Downloads\\vlc\\vlc.exe youtube.com/watch?v=" . $arrayItem . " 360p<br/>"; } ?>
Output for 5.2.6 - 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/CTYKP on line 3 Warning: file_get_contents(http://gdata.youtube.com/feeds/api/playlists/PLMiRl9MF7bqhLJv1PKCuxpAFCUG5AJCeT/?v=2&alt=json&feature=plcp): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/CTYKP on line 3 Notice: Trying to get property of non-object in /in/CTYKP on line 4 Notice: Trying to get property of non-object in /in/CTYKP on line 4
Output for 5.2.0 - 5.2.5
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/CTYKP on line 3 Warning: file_get_contents(http://gdata.youtube.com/feeds/api/playlists/PLMiRl9MF7bqhLJv1PKCuxpAFCUG5AJCeT/?v=2&alt=json&feature=plcp): failed to open stream: Connection refused in /in/CTYKP on line 3 Notice: Trying to get property of non-object in /in/CTYKP on line 4 Notice: Trying to get property of non-object in /in/CTYKP on line 4
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/CTYKP on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/CTYKP on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/CTYKP on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/CTYKP on line 3