3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = file_get_contents("http://gdata.youtube.com/feeds/api/users/Google?alt=json"); $data = json_decode($json, true); echo 'Channel Views: ' . $data['entry']['yt$statistics']['viewCount'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eK5TZ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $json, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fgdata.youtube.com%2Ffeeds%2Fapi%2Fusers%2FGoogle%3Falt%3Djson'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'json_decode'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    4     9        FETCH_DIM_R                                      ~6      !1, 'entry'
         10        FETCH_DIM_R                                      ~7      ~6, 'yt%24statistics'
         11        FETCH_DIM_R                                      ~8      ~7, 'viewCount'
         12        CONCAT                                           ~9      'Channel+Views%3A+', ~8
         13        ECHO                                                     ~9
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.51 ms | 1386 KiB | 17 Q