3v4l.org

run code in 300+ PHP versions simultaneously
<?php function jempty($var) { return !isset($var) || $var == false; } $t = []; var_dump(jempty($t));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2fK9E
function name:  (null)
number of ops:  8
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'jempty'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function jempty:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/2fK9E
function name:  jempty
number of ops:  8
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        ISSET_ISEMPTY_CV                                 ~1      !0
          2        BOOL_NOT                                         ~2      ~1
          3      > JMPNZ_EX                                         ~2      ~2, ->6
          4    >   BOOL_NOT                                         ~3      !0
          5        BOOL                                             ~2      ~3
          6    > > RETURN                                                   ~2
          7*     > RETURN                                                   null

End of function jempty

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.5 ms | 1397 KiB | 16 Q