3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['a'=>'']; $b = ''; $c = null; var_dump(empty($b)); var_dump(empty($c)); 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/r0Sol
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, ''
    4     2        ASSIGN                                                   !2, null
    5     3        INIT_FCALL                                               'var_dump'
          4        ISSET_ISEMPTY_CV                                 ~6      !1
          5        SEND_VAL                                                 ~6
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'var_dump'
          8        ISSET_ISEMPTY_CV                                 ~8      !2
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                                 
    7    11        INIT_FCALL                                               'var_dump'
         12        ISSET_ISEMPTY_DIM_OBJ                         1  ~10     !0, 'a'
         13        SEND_VAL                                                 ~10
         14        DO_ICALL                                                 
    8    15        INIT_FCALL                                               'var_dump'
         16        ISSET_ISEMPTY_DIM_OBJ                         1  ~12     !0, 'b'
         17        SEND_VAL                                                 ~12
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.11 ms | 1394 KiB | 15 Q