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)); $array=[]; var_dump(empty($array['notset']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bh9eL
function name:  (null)
number of ops:  18
compiled vars:  !0 = $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        ASSIGN                                                   !0, <array>
   12    13        INIT_FCALL                                               'var_dump'
         14        ISSET_ISEMPTY_DIM_OBJ                         1  ~6      !0, 'notset'
         15        SEND_VAL                                                 ~6
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
130.66 ms | 942 KiB | 16 Q