3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
191.08 ms | 1395 KiB | 15 Q