3v4l.org

run code in 300+ PHP versions simultaneously
<?php $align = 8; $map = [ 'center' => 1, 'left' => 2, 'right' => 3 ]; if (array_key_exists($map, $align) && isset($map[$align])) { print_r("true"); } else { print_r("false"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/jQ3Rp
function name:  (null)
number of ops:  15
compiled vars:  !0 = $align, !1 = $map
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 8
    5     1        ASSIGN                                                   !1, <array>
   10     2        ARRAY_KEY_EXISTS                                 ~4      !1, !0
          3      > JMPZ_EX                                          ~4      ~4, ->6
          4    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~5      !1, !0
          5        BOOL                                             ~4      ~5
          6    > > JMPZ                                                     ~4, ->11
   11     7    >   INIT_FCALL                                               'print_r'
          8        SEND_VAL                                                 'true'
          9        DO_ICALL                                                 
         10      > JMP                                                      ->14
   13    11    >   INIT_FCALL                                               'print_r'
         12        SEND_VAL                                                 'false'
         13        DO_ICALL                                                 
   14    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.13 ms | 939 KiB | 16 Q