3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = array('accounts', 1, 'uid'); $conf = json_decode('{ "accounts": { "1": { "uid": "1" }, "2": { "uid": "16" } }, "online": [ { "rules": { "language": "pl" }, "tag": { "name" : "kraj", "value": "Polska", "save" : true, "delay": 1800 } } ] }',true); print_r($conf['accounts'][1]['uid']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4VegN
function name:  (null)
number of ops:  13
compiled vars:  !0 = $key, !1 = $conf
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAL                                                 '%7B%0A++%22accounts%22%3A+%7B%0A++++%221%22%3A+%7B%0A++++++%22uid%22%3A+%221%22%0A++++%7D%2C%0A++++%222%22%3A+%7B%0A++++++%22uid%22%3A+%2216%22%0A++++%7D%0A++%7D%2C%0A++++%22online%22%3A+%5B%0A++++++++%7B%0A++++++++++++%22rules%22%3A+%7B%0A++++++++++++++++%22language%22%3A+%22pl%22%0A++++++++++++%7D%2C%0A++++++++++++%22tag%22%3A+%7B%0A++++++++++++++++%22name%22+%3A+%22kraj%22%2C%0A++++++++++++++++%22value%22%3A+%22Polska%22%2C%0A++++++++++++++++%22save%22+%3A+true%2C%0A++++++++++++++++%22delay%22%3A+1800%0A++++++++++++%7D%0A++++++++%7D%0A++++%5D%0A%7D'
   26     3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
    4     5        ASSIGN                                                   !1, $3
   28     6        INIT_FCALL                                               'print_r'
          7        FETCH_DIM_R                                      ~5      !1, 'accounts'
          8        FETCH_DIM_R                                      ~6      ~5, 1
          9        FETCH_DIM_R                                      ~7      ~6, 'uid'
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.58 ms | 1394 KiB | 17 Q