3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is_set(& $v) { return $v !== null; } if(is_set($var)) { echo $var; } else { echo '$var is not set' ; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5Jqok
function name:  (null)
number of ops:  8
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'is_set'
          1        SEND_REF                                                 !0
          2        DO_FCALL                                      0  $1      
          3      > JMPZ                                                     $1, ->6
    8     4    >   ECHO                                                     !0
          5      > JMP                                                      ->7
   10     6    >   ECHO                                                     '%24var+is+not+set'
   11     7    > > RETURN                                                   1

Function is_set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5Jqok
function name:  is_set
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        TYPE_CHECK                                  1020  ~1      !0
          2      > RETURN                                                   ~1
    5     3*     > RETURN                                                   null

End of function is_set

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.89 ms | 937 KiB | 15 Q