3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stuff = [ 'foo' => 'zoo', 'bar' => 'blue', 'baz' => 'kapow' ]; $incomming = 'banana'; if (!empty($stuff[$incomming])){ var_dump($stuff[$incomming]); }
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 = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/95lHI
function name:  (null)
number of ops:  10
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'
   10     2        ISSET_ISEMPTY_DIM_OBJ                         1  ~4      !0, !1
          3        BOOL_NOT                                         ~5      ~4
          4      > JMPZ                                                     ~5, ->9
   11     5    >   INIT_FCALL                                               'var_dump'
          6        FETCH_DIM_R                                      ~6      !0, !1
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                                 
   12     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.17 ms | 1394 KiB | 15 Q