3v4l.org

run code in 300+ PHP versions simultaneously
<?php const CONST1 = [1 => 'bla']; $foo = 1; if (isset(CONST1[$foo])) { echo CONST1[$foo]; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/CKJ9E
function name:  (null)
number of ops:  9
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'CONST1', <array>
    4     1        ASSIGN                                                   !0, 1
    6     2        FETCH_CONSTANT                                   ~2      'CONST1'
          3        ISSET_ISEMPTY_DIM_OBJ                         0          ~2, !0
          4      > JMPZ                                                     ~3, ->8
    7     5    >   FETCH_CONSTANT                                   ~4      'CONST1'
          6        FETCH_DIM_R                                      ~5      ~4, !0
          7        ECHO                                                     ~5
    8     8    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.91 ms | 1392 KiB | 13 Q