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']['d'])) { print "empty"; } else { print "not empty"; } print "\n"; if (empty($x['a']['c']['d'])) { print "empty"; } else { print "not empty"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
Branch analysis from position: 21
filename:       /in/r561E
function name:  (null)
number of ops:  23
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        FETCH_DIM_IS                                     ~7      ~6, 'b'
          9        ISSET_ISEMPTY_DIM_OBJ                         1          ~7, 'd'
         10      > JMPZ                                                     ~8, ->13
    6    11    >   ECHO                                                     'empty'
         12      > JMP                                                      ->14
    8    13    >   ECHO                                                     'not+empty'
   10    14    >   ECHO                                                     '%0A'
   11    15        FETCH_DIM_IS                                     ~9      !0, 'a'
         16        FETCH_DIM_IS                                     ~10     ~9, 'c'
         17        ISSET_ISEMPTY_DIM_OBJ                         1          ~10, 'd'
         18      > JMPZ                                                     ~11, ->21
   12    19    >   ECHO                                                     'empty'
         20      > JMP                                                      ->22
   14    21    >   ECHO                                                     'not+empty'
   15    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.15 ms | 1394 KiB | 13 Q