3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.36 ms | 1394 KiB | 15 Q