3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getInstance($dbName) { if(empty($dbName)){ return "yes"; } else{ return "no"; } } return self::$mysql; echo getInstance(null); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Oa3ij
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'mysql'
          1      > RETURN                                                   ~0
   14     2*       INIT_FCALL                                               'getinstance'
          3*       SEND_VAL                                                 null
          4*       DO_FCALL                                      0  $1      
          5*       ECHO                                                     $1
   15     6*     > RETURN                                                   1

Function getinstance:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Oa3ij
function name:  getInstance
number of ops:  7
compiled vars:  !0 = $dbName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        ISSET_ISEMPTY_CV                                         !0
          2      > JMPZ                                                     ~1, ->5
    5     3    > > RETURN                                                   'yes'
          4*       JMP                                                      ->6
    8     5    > > RETURN                                                   'no'
   10     6*     > RETURN                                                   null

End of function getinstance

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.4 ms | 1402 KiB | 14 Q