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 = 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
filename:       /in/SCYOd
function name:  (null)
number of ops:  15
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        BEGIN_SILENCE                                    ~4      
          2        FETCH_DIM_R                                      ~5      !0, !2
          3        END_SILENCE                                              ~4
          4        ASSIGN                                                   !1, ~5
   10     5        ISSET_ISEMPTY_CV                                         !1
          6      > JMPZ                                                     ~7, ->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:
143.91 ms | 1394 KiB | 15 Q