3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.22 ms | 1394 KiB | 15 Q