3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for gdata.youtube.com failed: System error 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 for gdata.youtube.com failed: System error in /in/CTYKP on line 3 Warning: Attempt to read property "feed" on null in /in/CTYKP on line 4 Warning: Attempt to read property "entry" on null in /in/CTYKP on line 4 Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /in/CTYKP:8 Stack trace: #0 {main} thrown in /in/CTYKP on line 8
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.73 ms | 402 KiB | 8 Q