3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stuff = [ 'foo' => 'zoo', 'bar' => 'blue', 'baz' => 'kapow' ]; $incomming = 'banana'; var_dump($stuff[$incomming]); if (!empty($stuff[$incomming])){ var_dump($stuff[$incomming]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/ZY4HY
function name:  (null)
number of ops:  14
compiled vars:  !0 = $stuff, !1 = $incomming
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, 'banana'
    9     2        INIT_FCALL                                               'var_dump'
          3        FETCH_DIM_R                                      ~4      !0, !1
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                                 
   10     6        ISSET_ISEMPTY_DIM_OBJ                         1  ~6      !0, !1
          7        BOOL_NOT                                         ~7      ~6
          8      > JMPZ                                                     ~7, ->13
   11     9    >   INIT_FCALL                                               'var_dump'
         10        FETCH_DIM_R                                      ~8      !0, !1
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                                 
   12    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.44 ms | 1394 KiB | 15 Q