3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array[0]['somekey'] = 'bla'; is_array($array); isset($array[0]['somekey']['someotherkey']) ? print $array[0]['somekey']['someotherkey'] : print $array[0]['somekey']['someotherkey'];
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7ApvE
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                      $1      !0, 0
          1        ASSIGN_DIM                                               $1, 'somekey'
          2        OP_DATA                                                  'bla'
    5     3        TYPE_CHECK                                  128  ~3      !0
          4        FREE                                                     ~3
    6     5        FETCH_DIM_IS                                     ~4      !0, 0
          6        FETCH_DIM_IS                                     ~5      ~4, 'somekey'
          7        ISSET_ISEMPTY_DIM_OBJ                         0          ~5, 'someotherkey'
          8      > JMPZ                                                     ~6, ->15
          9    >   FETCH_DIM_R                                      ~7      !0, 0
         10        FETCH_DIM_R                                      ~8      ~7, 'somekey'
         11        FETCH_DIM_R                                      ~9      ~8, 'someotherkey'
         12        ECHO                                                     ~9
         13        QM_ASSIGN                                        ~10     1
         14      > JMP                                                      ->20
         15    >   FETCH_DIM_R                                      ~11     !0, 0
         16        FETCH_DIM_R                                      ~12     ~11, 'somekey'
         17        FETCH_DIM_R                                      ~13     ~12, 'someotherkey'
         18        ECHO                                                     ~13
         19        QM_ASSIGN                                        ~10     1
         20    >   FREE                                                     ~10
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.42 ms | 1393 KiB | 13 Q