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/>"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 24
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 23
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 23
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 23
2 jumps found. (Code = 77) Position 1 = 25, Position 2 = 30
Branch analysis from position: 25
2 jumps found. (Code = 78) Position 1 = 26, Position 2 = 30
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
Branch analysis from position: 23
Branch analysis from position: 24
filename:       /in/CTYKP
function name:  (null)
number of ops:  32
compiled vars:  !0 = $cont, !1 = $feed, !2 = $videoID_array, !3 = $item, !4 = $arrayItem
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAL                                                 'http%3A%2F%2Fgdata.youtube.com%2Ffeeds%2Fapi%2Fplaylists%2FPLMiRl9MF7bqhLJv1PKCuxpAFCUG5AJCeT%2F%3Fv%3D2%26alt%3Djson%26feature%3Dplcp'
          3        DO_ICALL                                         $5      
          4        SEND_VAR                                                 $5
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !0, $6
    4     7        FETCH_OBJ_R                                      ~8      !0, 'feed'
          8        FETCH_OBJ_R                                      ~9      ~8, 'entry'
          9        ASSIGN                                                   !1, ~9
    6    10        ASSIGN                                                   !2, <array>
    8    11        COUNT                                            ~12     !1
         12      > JMPZ                                                     ~12, ->24
   10    13    > > FE_RESET_R                                       $13     !1, ->23
         14    > > FE_FETCH_R                                               $13, !3, ->23
   11    15    >   INIT_FCALL                                               'array_push'
         16        SEND_REF                                                 !2
         17        FETCH_OBJ_R                                      ~14     !3, 'media%24group'
         18        FETCH_OBJ_R                                      ~15     ~14, 'yt%24videoid'
         19        FETCH_OBJ_R                                      ~16     ~15, '%24t'
         20        SEND_VAL                                                 ~16
         21        DO_ICALL                                                 
   10    22      > JMP                                                      ->14
         23    >   FE_FREE                                                  $13
   14    24    > > FE_RESET_R                                       $18     !2, ->30
         25    > > FE_FETCH_R                                               $18, !4, ->30
   15    26    >   CONCAT                                           ~19     'livestreamer.exe+-p+C%3A%5CUsers%5CGabriele.coen%5CDownloads%5Cvlc%5Cvlc.exe+youtube.com%2Fwatch%3Fv%3D', !4
         27        CONCAT                                           ~20     ~19, '+360p%3Cbr%2F%3E'
         28        ECHO                                                     ~20
   14    29      > JMP                                                      ->25
         30    >   FE_FREE                                                  $18
   18    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.16 ms | 1392 KiB | 19 Q