3v4l.org

run code in 300+ PHP versions simultaneously
<?php $header = array('test'); if (is_array($header[0]) && isset($header[0]['class'])) { echo $header[0]['class']; } else { echo 'not set'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/thPmM
function name:  (null)
number of ops:  14
compiled vars:  !0 = $header
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_R                                      ~2      !0, 0
          2        TYPE_CHECK                                  128  ~3      ~2
          3      > JMPZ_EX                                          ~3      ~3, ->7
          4    >   FETCH_DIM_IS                                     ~4      !0, 0
          5        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      ~4, 'class'
          6        BOOL                                             ~3      ~5
          7    > > JMPZ                                                     ~3, ->12
    4     8    >   FETCH_DIM_R                                      ~6      !0, 0
          9        FETCH_DIM_R                                      ~7      ~6, 'class'
         10        ECHO                                                     ~7
         11      > JMP                                                      ->13
    7    12    >   ECHO                                                     'not+set'
    8    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.99 ms | 1393 KiB | 13 Q