3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"data":{"profile":{"id":"1","name":"Nikita"}}}'; $val = (array)json_decode($json); var_dump($val, $val['data'], $val['data']->profile);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GguIt
function name:  (null)
number of ops:  15
compiled vars:  !0 = $json, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22data%22%3A%7B%22profile%22%3A%7B%22id%22%3A%221%22%2C%22name%22%3A%22Nikita%22%7D%7D%7D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        CAST                                          7  ~4      $3
          5        ASSIGN                                                   !1, ~4
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        FETCH_DIM_R                                      ~6      !1, 'data'
          9        SEND_VAL                                                 ~6
         10        FETCH_DIM_R                                      ~7      !1, 'data'
         11        FETCH_OBJ_R                                      ~8      ~7, 'profile'
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.71 ms | 1385 KiB | 17 Q