3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['a'=>'']; var_dump(empty('')); var_dump(empty(null)); var_dump(empty($a['a'])); var_dump(empty($a['b']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/edq3U
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        ISSET_ISEMPTY_DIM_OBJ                         1  ~4      !0, 'a'
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'var_dump'
         12        ISSET_ISEMPTY_DIM_OBJ                         1  ~6      !0, 'b'
         13        SEND_VAL                                                 ~6
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.69 ms | 1394 KiB | 15 Q