3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.08 ms | 1394 KiB | 17 Q