3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array(); $x['a']['b'] = true; $x['a']['c'] = false; if (!empty($x['a']['b'])) { print "true"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/Pt0b7
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_W                                      $2      !0, 'a'
          2        ASSIGN_DIM                                               $2, 'b'
          3        OP_DATA                                                  <true>
    4     4        FETCH_DIM_W                                      $4      !0, 'a'
          5        ASSIGN_DIM                                               $4, 'c'
          6        OP_DATA                                                  <false>
    5     7        FETCH_DIM_IS                                     ~6      !0, 'a'
          8        ISSET_ISEMPTY_DIM_OBJ                         1  ~7      ~6, 'b'
          9        BOOL_NOT                                         ~8      ~7
         10      > JMPZ                                                     ~8, ->12
    6    11    >   ECHO                                                     'true'
    7    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.68 ms | 1393 KiB | 13 Q