3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
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: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/4IJqm
function name:  (null)
number of ops:  14
compiled vars:  !0 = $map, !1 = $align
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ARRAY_KEY_EXISTS                                 ~3      !0, !1
          2      > JMPZ_EX                                          ~3      ~3, ->5
          3    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~4      !0, !1
          4        BOOL                                             ~3      ~4
          5    > > JMPZ                                                     ~3, ->10
    9     6    >   INIT_FCALL                                               'print_r'
          7        SEND_VAL                                                 'true'
          8        DO_ICALL                                                 
          9      > JMP                                                      ->13
   11    10    >   INIT_FCALL                                               'print_r'
         11        SEND_VAL                                                 'false'
         12        DO_ICALL                                                 
   12    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.26 ms | 1394 KiB | 15 Q