3v4l.org

run code in 300+ PHP versions simultaneously
<?php $streams = json_decode(get_url_contents("https://api.twitch.tv/kraken/streams")); echo "name" . $streams->streams[0]->channel->name;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9WqsI
function name:  (null)
number of ops:  14
compiled vars:  !0 = $streams
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        INIT_FCALL_BY_NAME                                       'get_url_contents'
          2        SEND_VAL_EX                                              'https%3A%2F%2Fapi.twitch.tv%2Fkraken%2Fstreams'
          3        DO_FCALL                                      0  $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        FETCH_OBJ_R                                      ~4      !0, 'streams'
          8        FETCH_DIM_R                                      ~5      ~4, 0
          9        FETCH_OBJ_R                                      ~6      ~5, 'channel'
         10        FETCH_OBJ_R                                      ~7      ~6, 'name'
         11        CONCAT                                           ~8      'name', ~7
         12        ECHO                                                     ~8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.66 ms | 1398 KiB | 15 Q