3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_decode('{"4":"Taaaaa"}')); $array = (array)(json_decode('{"4":"Taaaaa"}')); var_dump(array_keys($array)); $key = "4"; var_dump($key, $array, $array[(string)$key]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dig4W
function name:  (null)
number of ops:  26
compiled vars:  !0 = $array, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'json_decode'
          2        SEND_VAL                                                 '%7B%224%22%3A%22Taaaaa%22%7D'
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'json_decode'
          7        SEND_VAL                                                 '%7B%224%22%3A%22Taaaaa%22%7D'
          8        DO_ICALL                                         $4      
          9        CAST                                          7  ~5      $4
         10        ASSIGN                                                   !0, ~5
    7    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'array_keys'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
    9    17        ASSIGN                                                   !1, '4'
   12    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !1
         20        SEND_VAR                                                 !0
         21        CAST                                          6  ~10     !1
         22        FETCH_DIM_R                                      ~11     !0, ~10
         23        SEND_VAL                                                 ~11
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.48 ms | 940 KiB | 20 Q