3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (empty($a)) { echo 'foo'; } else { echo 'bar'; } empty($a['aaaa']); empty($b['aaaaa']); isset($dsadasdasd); isset($dsadasd['aaaaa']);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2074d
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b, !2 = $dsadasdasd, !3 = $dsadasd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ISSET_ISEMPTY_CV                                         !0
          1      > JMPZ                                                     ~4, ->4
    4     2    >   ECHO                                                     'foo'
          3      > JMP                                                      ->5
    6     4    >   ECHO                                                     'bar'
    9     5    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~5      !0, 'aaaa'
          6        FREE                                                     ~5
   10     7        ISSET_ISEMPTY_DIM_OBJ                         1  ~6      !1, 'aaaaa'
          8        FREE                                                     ~6
   12     9        ISSET_ISEMPTY_CV                                 ~7      !2
         10        FREE                                                     ~7
   13    11        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      !3, 'aaaaa'
         12        FREE                                                     ~8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.69 ms | 1393 KiB | 13 Q