3v4l.org

run code in 300+ PHP versions simultaneously
<?php $section = array('Endpoint' => new StdClass()); if (is_array($section) && isset($section['Endpoint']['class'])) echo '[bad] class is set?'; else echo '[good] class not set.';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
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: 9
filename:       /in/AbhbU
function name:  (null)
number of ops:  14
compiled vars:  !0 = $section
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'StdClass'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~3      $1, 'Endpoint'
          3        ASSIGN                                                   !0, ~3
    5     4        TYPE_CHECK                                  128  ~5      !0
          5      > JMPZ_EX                                          ~5      ~5, ->9
          6    >   FETCH_DIM_IS                                     ~6      !0, 'Endpoint'
          7        ISSET_ISEMPTY_DIM_OBJ                         0  ~7      ~6, 'class'
          8        BOOL                                             ~5      ~7
          9    > > JMPZ                                                     ~5, ->12
    6    10    >   ECHO                                                     '%5Bbad%5D+class+is+set%3F'
         11      > JMP                                                      ->13
    8    12    >   ECHO                                                     '%5Bgood%5D+class+not+set.'
         13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.25 ms | 1393 KiB | 13 Q