3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace app; define('YII_ENV_PROD', false); class BaseObject { protected $enableFriendClassesInProd = false; protected $calledClassStackLimit = 0; protected $friendParents = false; protected $friendDescendants = false; protected $friendClasses = []; public function __call($name, $args) { if (method_exists($this, $name) && method_exists($this, '_call')) { if (!YII_ENV_PROD || $enableFriendClassesInProd ) { $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, $this->calledClassStackLimit); $stackClasses = array_column($backtrace, 'class'); $calledClass = array_pop($stackClasses); if (in_array($calledClass, $this->friendClasses)) { return call_user_func_array([$this, '_call'], [$name, $args]); } elseif ($this->friendDescendants && is_subclass_of($calledClass, static::class)) { return call_user_func_array([$this, '_call'], [$name, $args]); } elseif ($this->friendParents && is_subclass_of(static::class, $calledClass)) { return call_user_func_array([$this, '_call'], [$name, $args]); } else { throw new \Exception('Method disallowed: ' . get_class($this) . '::' . $name); } } return call_user_func_array([$this, '_call'], [$name, $args]); } else { throw new \Exception('Calling unknown method:' . get_class($this) . '::' . $name); } } public function __get($name) { $getter = 'get' . $name; if (method_exists($this, $getter)) { return $this->$getter(); } elseif (method_exists($this, 'set' . $name)) { throw new \Exception('Getting write-only property: ' . get_class($this) . '::' . $name); } throw new \Exception('Getting unknown property: ' . get_class($this) . '::' . $name); } public function __set($name, $value) { $setter = 'set' . $name; if (method_exists($this, $setter)) { $this->$setter($value); } elseif (method_exists($this, 'get' . $name)) { throw new \Exception('Setting read-only property: ' . get_class($this) . '::' . $name); } else { throw new \Exception('Setting unknown property: ' . get_class($this) . '::' . $name); } } } class Yii { public static $app; } class Module extends BaseObject { protected $modules; private function setInstance() { Yii::$app->addLoadedModule($this); } public static function getInstance() { $loadedModules = Yii::$app->getLoadedModules(); if (isset($loadedModules[static::class])) { return $loadedModules[static::class]; } return null; } public function getModule($name) { if (isset($this->modules[$name])) { if (is_object($this->modules[$name])) { return $this->modules[$name]; } else { $class = $this->modules[$name]; $module = new $class(); $module->setInstance(); return $module; } } } } class Application extends Module { private $loadedModules = []; protected $calledClassStackLimit = 10; protected $friendParents = true; protected $friendClasses = ['app\ModuleLocator']; public function __construct($config) { if (isset($config['modules'])) { $this->modules = $config['modules']; } } private function addLoadedModule($object) { $this->loadedModules[get_class($object)] = $object; } private function getLoadedModules() { return $this->loadedModules; } protected function _call($name, $args) { return call_user_func_array([$this, $name], $args); } } class MyFirstModule extends Module { public function whoAmI() { echo "\n" . 'I am the first module'; } } class MySecondModule extends Module { public function WhoAmI() { echo "\n" . 'I am the second module'; } } class MyThirdModule extends Module { public function WhoAmI() { echo "\n" . 'I am the third module'; } } class ModuleLocator extends BaseObject { public static function getLoadedModules() { return Yii::$app->loadedModules; } } $config = [ 'modules' => [ 'myFirstModule' => 'app\MyFirstModule', 'mySecondModule' => 'app\MySecondModule', 'myThirdModule' => 'app\MyThirdModule', ] ]; Yii::$app = new Application($config); $myFirstModule = Yii::$app->getModule('myFirstModule'); $myFirstModule->whoAmI(); $mySecondModule = Yii::$app->getModule('mySecondModule'); $mySecondModule->whoAmI(); echo "\n"; print_r(ModuleLocator::getLoadedModules()); echo "\n"; $myFirstModuleInstanse = MyFirstModule::getInstance(); $myFirstModuleInstanse->whoAmI(); $mySecondModuleInstanse = MySecondModule::getInstance(); $mySecondModuleInstanse->whoAmI();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kAHU6
function name:  (null)
number of ops:  42
compiled vars:  !0 = $config, !1 = $myFirstModule, !2 = $mySecondModule, !3 = $myFirstModuleInstanse, !4 = $mySecondModuleInstanse
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_NS_FCALL_BY_NAME                                    'app%5Cdefine'
          1        SEND_VAL_EX                                              'YII_ENV_PROD'
          2        SEND_VAL_EX                                              <false>
          3        DO_FCALL                                      0          
  174     4        ASSIGN                                                   !0, <array>
  182     5        NEW                                              $8      'app%5CApplication'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        ASSIGN_STATIC_PROP                                       'app', 'app%5CYii'
          9        OP_DATA                                                  $8
  183    10        FETCH_STATIC_PROP_R          unknown             ~10     'app'
         11        INIT_METHOD_CALL                                         ~10, 'getModule'
         12        SEND_VAL_EX                                              'myFirstModule'
         13        DO_FCALL                                      0  $11     
         14        ASSIGN                                                   !1, $11
  184    15        INIT_METHOD_CALL                                         !1, 'whoAmI'
         16        DO_FCALL                                      0          
  185    17        FETCH_STATIC_PROP_R          unknown             ~14     'app'
         18        INIT_METHOD_CALL                                         ~14, 'getModule'
         19        SEND_VAL_EX                                              'mySecondModule'
         20        DO_FCALL                                      0  $15     
         21        ASSIGN                                                   !2, $15
  186    22        INIT_METHOD_CALL                                         !2, 'whoAmI'
         23        DO_FCALL                                      0          
  187    24        ECHO                                                     '%0A'
  188    25        INIT_NS_FCALL_BY_NAME                                    'app%5Cprint_r'
         26        INIT_STATIC_METHOD_CALL                                  'app%5CModuleLocator', 'getLoadedModules'
         27        DO_FCALL                                      0  $18     
         28        SEND_VAR_NO_REF_EX                                       $18
         29        DO_FCALL                                      0          
  189    30        ECHO                                                     '%0A'
  190    31        INIT_STATIC_METHOD_CALL                                  'app%5CMyFirstModule', 'getInstance'
         32        DO_FCALL                                      0  $20     
         33        ASSIGN                                                   !3, $20
  191    34        INIT_METHOD_CALL                                         !3, 'whoAmI'
         35        DO_FCALL                                      0          
  192    36        INIT_STATIC_METHOD_CALL                                  'app%5CMySecondModule', 'getInstance'
         37        DO_FCALL                                      0  $23     
         38        ASSIGN                                                   !4, $23
  193    39        INIT_METHOD_CALL                                         !4, 'whoAmI'
         40        DO_FCALL                                      0          
         41      > RETURN                                                   1

Class app\BaseObject:
Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 117
Branch analysis from position: 15
2 jumps found. (Code = 47) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 106
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 55
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 55
2 jumps found. (Code = 46) Position 1 = 57, Position 2 = 63
Branch analysis from position: 57
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 75
Branch analysis from position: 64
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 75
2 jumps found. (Code = 46) Position 1 = 77, Position 2 = 83
Branch analysis from position: 77
2 jumps found. (Code = 43) Position 1 = 84, Position 2 = 95
Branch analysis from position: 84
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 95
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 83
Branch analysis from position: 63
Branch analysis from position: 106
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 117
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 14
filename:       /in/kAHU6
function name:  __call
number of ops:  129
compiled vars:  !0 = $name, !1 = $args, !2 = $enableFriendClassesInProd, !3 = $backtrace, !4 = $stackClasses, !5 = $calledClass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   21     2        INIT_NS_FCALL_BY_NAME                                    'app%5Cmethod_exists'
          3        FETCH_THIS                                       $6      
          4        SEND_VAR_EX                                              $6
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $7      
          7      > JMPZ_EX                                          ~8      $7, ->14
          8    >   INIT_NS_FCALL_BY_NAME                                    'app%5Cmethod_exists'
          9        FETCH_THIS                                       $9      
         10        SEND_VAR_EX                                              $9
         11        SEND_VAL_EX                                              '_call'
         12        DO_FCALL                                      0  $10     
         13        BOOL                                             ~8      $10
         14    > > JMPZ                                                     ~8, ->117
   22    15    >   FETCH_CONSTANT                                   ~11     'app%5CYII_ENV_PROD'
         16        BOOL_NOT                                         ~12     ~11
         17      > JMPNZ_EX                                         ~12     ~12, ->19
         18    >   BOOL                                             ~12     !2
         19    > > JMPZ                                                     ~12, ->106
   23    20    >   INIT_NS_FCALL_BY_NAME                                    'app%5Cdebug_backtrace'
         21        FETCH_CONSTANT                                   ~13     'app%5CDEBUG_BACKTRACE_IGNORE_ARGS'
         22        SEND_VAL_EX                                              ~13
         23        CHECK_FUNC_ARG                                           
         24        FETCH_OBJ_FUNC_ARG                               $14     'calledClassStackLimit'
         25        SEND_FUNC_ARG                                            $14
         26        DO_FCALL                                      0  $15     
         27        ASSIGN                                                   !3, $15
   24    28        INIT_NS_FCALL_BY_NAME                                    'app%5Carray_column'
         29        SEND_VAR_EX                                              !3
         30        SEND_VAL_EX                                              'class'
         31        DO_FCALL                                      0  $17     
         32        ASSIGN                                                   !4, $17
   25    33        INIT_NS_FCALL_BY_NAME                                    'app%5Carray_pop'
         34        SEND_VAR_EX                                              !4
         35        DO_FCALL                                      0  $19     
         36        ASSIGN                                                   !5, $19
   27    37        INIT_NS_FCALL_BY_NAME                                    'app%5Cin_array'
         38        SEND_VAR_EX                                              !5
         39        CHECK_FUNC_ARG                                           
         40        FETCH_OBJ_FUNC_ARG                               $21     'friendClasses'
         41        SEND_FUNC_ARG                                            $21
         42        DO_FCALL                                      0  $22     
         43      > JMPZ                                                     $22, ->55
   28    44    >   INIT_NS_FCALL_BY_NAME                                    'app%5Ccall_user_func_array'
         45        FETCH_THIS                                       ~23     
         46        INIT_ARRAY                                       ~24     ~23
         47        ADD_ARRAY_ELEMENT                                ~24     '_call'
         48        SEND_VAL_EX                                              ~24
         49        INIT_ARRAY                                       ~25     !0
         50        ADD_ARRAY_ELEMENT                                ~25     !1
         51        SEND_VAL_EX                                              ~25
         52        DO_FCALL                                      0  $26     
         53      > RETURN                                                   $26
   27    54*       JMP                                                      ->106
   29    55    >   FETCH_OBJ_R                                      ~27     'friendDescendants'
         56      > JMPZ_EX                                          ~27     ~27, ->63
         57    >   INIT_NS_FCALL_BY_NAME                                    'app%5Cis_subclass_of'
         58        SEND_VAR_EX                                              !5
         59        FETCH_CLASS_NAME                                 ~28     
         60        SEND_VAL_EX                                              ~28
         61        DO_FCALL                                      0  $29     
         62        BOOL                                             ~27     $29
         63    > > JMPZ                                                     ~27, ->75
   30    64    >   INIT_NS_FCALL_BY_NAME                                    'app%5Ccall_user_func_array'
         65        FETCH_THIS                                       ~30     
         66        INIT_ARRAY                                       ~31     ~30
         67        ADD_ARRAY_ELEMENT                                ~31     '_call'
         68        SEND_VAL_EX                                              ~31
         69        INIT_ARRAY                                       ~32     !0
         70        ADD_ARRAY_ELEMENT                                ~32     !1
         71        SEND_VAL_EX                                              ~32
         72        DO_FCALL                                      0  $33     
         73      > RETURN                                                   $33
   29    74*       JMP                                                      ->106
   31    75    >   FETCH_OBJ_R                                      ~34     'friendParents'
         76      > JMPZ_EX                                          ~34     ~34, ->83
         77    >   INIT_NS_FCALL_BY_NAME                                    'app%5Cis_subclass_of'
         78        FETCH_CLASS_NAME                                 ~35     
         79        SEND_VAL_EX                                              ~35
         80        SEND_VAR_EX                                              !5
         81        DO_FCALL                                      0  $36     
         82        BOOL                                             ~34     $36
         83    > > JMPZ                                                     ~34, ->95
   32    84    >   INIT_NS_FCALL_BY_NAME                                    'app%5Ccall_user_func_array'
         85        FETCH_THIS                                       ~37     
         86        INIT_ARRAY                                       ~38     ~37
         87        ADD_ARRAY_ELEMENT                                ~38     '_call'
         88        SEND_VAL_EX                                              ~38
         89        INIT_ARRAY                                       ~39     !0
         90        ADD_ARRAY_ELEMENT                                ~39     !1
         91        SEND_VAL_EX                                              ~39
         92        DO_FCALL                                      0  $40     
         93      > RETURN                                                   $40
   31    94*       JMP                                                      ->106
   34    95    >   NEW                                              $41     'Exception'
         96        INIT_NS_FCALL_BY_NAME                                    'app%5Cget_class'
         97        FETCH_THIS                                       $42     
         98        SEND_VAR_EX                                              $42
         99        DO_FCALL                                      0  $43     
        100        CONCAT                                           ~44     'Method+disallowed%3A+', $43
        101        CONCAT                                           ~45     ~44, '%3A%3A'
        102        CONCAT                                           ~46     ~45, !0
        103        SEND_VAL_EX                                              ~46
        104        DO_FCALL                                      0          
        105      > THROW                                         0          $41
   38   106    >   INIT_NS_FCALL_BY_NAME                                    'app%5Ccall_user_func_array'
        107        FETCH_THIS                                       ~48     
        108        INIT_ARRAY                                       ~49     ~48
        109        ADD_ARRAY_ELEMENT                                ~49     '_call'
        110        SEND_VAL_EX                                              ~49
        111        INIT_ARRAY                                       ~50     !0
        112        ADD_ARRAY_ELEMENT                                ~50     !1
        113        SEND_VAL_EX                                              ~50
        114        DO_FCALL                                      0  $51     
        115      > RETURN                                                   $51
   21   116*       JMP                                                      ->128
   40   117    >   NEW                                              $52     'Exception'
        118        INIT_NS_FCALL_BY_NAME                                    'app%5Cget_class'
        119        FETCH_THIS                                       $53     
        120        SEND_VAR_EX                                              $53
        121        DO_FCALL                                      0  $54     
        122        CONCAT                                           ~55     'Calling+unknown+method%3A', $54
        123        CONCAT                                           ~56     ~55, '%3A%3A'
        124        CONCAT                                           ~57     ~56, !0
        125        SEND_VAL_EX                                              ~57
        126        DO_FCALL                                      0          
        127      > THROW                                         0          $52
   42   128*     > RETURN                                                   null

End of function __call

Function __get:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 31
Branch analysis from position: 20
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/kAHU6
function name:  __get
number of ops:  43
compiled vars:  !0 = $name, !1 = $getter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   44     0  E >   RECV                                             !0      
   46     1        CONCAT                                           ~2      'get', !0
          2        ASSIGN                                                   !1, ~2
   47     3        INIT_NS_FCALL_BY_NAME                                    'app%5Cmethod_exists'
          4        FETCH_THIS                                       $4      
          5        SEND_VAR_EX                                              $4
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $5      
          8      > JMPZ                                                     $5, ->13
   48     9    >   INIT_METHOD_CALL                                         !1
         10        DO_FCALL                                      0  $6      
         11      > RETURN                                                   $6
   47    12*       JMP                                                      ->31
   49    13    >   INIT_NS_FCALL_BY_NAME                                    'app%5Cmethod_exists'
         14        FETCH_THIS                                       $7      
         15        SEND_VAR_EX                                              $7
         16        CONCAT                                           ~8      'set', !0
         17        SEND_VAL_EX                                              ~8
         18        DO_FCALL                                      0  $9      
         19      > JMPZ                                                     $9, ->31
   50    20    >   NEW                                              $10     'Exception'
         21        INIT_NS_FCALL_BY_NAME                                    'app%5Cget_class'
         22        FETCH_THIS                                       $11     
         23        SEND_VAR_EX                                              $11
         24        DO_FCALL                                      0  $12     
         25        CONCAT                                           ~13     'Getting+write-only+property%3A+', $12
         26        CONCAT                                           ~14     ~13, '%3A%3A'
         27        CONCAT                                           ~15     ~14, !0
         28        SEND_VAL_EX                                              ~15
         29        DO_FCALL                                      0          
         30      > THROW                                         0          $10
   53    31    >   NEW                                              $17     'Exception'
         32        INIT_NS_FCALL_BY_NAME                                    'app%5Cget_class'
         33        FETCH_THIS                                       $18     
         34        SEND_VAR_EX                                              $18
         35        DO_FCALL                                      0  $19     
         36        CONCAT                                           ~20     'Getting+unknown+property%3A+', $19
         37        CONCAT                                           ~21     ~20, '%3A%3A'
         38        CONCAT                                           ~22     ~21, !0
         39        SEND_VAL_EX                                              ~22
         40        DO_FCALL                                      0          
         41      > THROW                                         0          $17
   54    42*     > RETURN                                                   null

End of function __get

Function __set:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 33
Branch analysis from position: 21
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/kAHU6
function name:  __set
number of ops:  45
compiled vars:  !0 = $name, !1 = $value, !2 = $setter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   56     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   58     2        CONCAT                                           ~3      'set', !0
          3        ASSIGN                                                   !2, ~3
   59     4        INIT_NS_FCALL_BY_NAME                                    'app%5Cmethod_exists'
          5        FETCH_THIS                                       $5      
          6        SEND_VAR_EX                                              $5
          7        SEND_VAR_EX                                              !2
          8        DO_FCALL                                      0  $6      
          9      > JMPZ                                                     $6, ->14
   60    10    >   INIT_METHOD_CALL                                         !2
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0          
   59    13      > JMP                                                      ->44
   61    14    >   INIT_NS_FCALL_BY_NAME                                    'app%5Cmethod_exists'
         15        FETCH_THIS                                       $8      
         16        SEND_VAR_EX                                              $8
         17        CONCAT                                           ~9      'get', !0
         18        SEND_VAL_EX                                              ~9
         19        DO_FCALL                                      0  $10     
         20      > JMPZ                                                     $10, ->33
   62    21    >   NEW                                              $11     'Exception'
         22        INIT_NS_FCALL_BY_NAME                                    'app%5Cget_class'
         23        FETCH_THIS                                       $12     
         24        SEND_VAR_EX                                              $12
         25        DO_FCALL                                      0  $13     
         26        CONCAT                                           ~14     'Setting+read-only+property%3A+', $13
         27        CONCAT                                           ~15     ~14, '%3A%3A'
         28        CONCAT                                           ~16     ~15, !0
         29        SEND_VAL_EX                                              ~16
         30        DO_FCALL                                      0          
         31      > THROW                                         0          $11
   61    32*       JMP                                                      ->44
   64    33    >   NEW                                              $18     'Exception'
         34        INIT_NS_FCALL_BY_NAME                                    'app%5Cget_class'
         35        FETCH_THIS                                       $19     
         36        SEND_VAR_EX                                              $19
         37        DO_FCALL                                      0  $20     
         38        CONCAT                                           ~21     'Setting+unknown+property%3A+', $20
         39        CONCAT                                           ~22     ~21, '%3A%3A'
         40        CONCAT                                           ~23     ~22, !0
         41        SEND_VAL_EX                                              ~23
         42        DO_FCALL                                      0          
         43      > THROW                                         0          $18
   66    44    > > RETURN                                                   null

End of function __set

End of class app\BaseObject.

Class app\Yii: [no user functions]
Class app\Module:
Function setinstance:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kAHU6
function name:  setInstance
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   81     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'app'
          1        INIT_METHOD_CALL                                         ~0, 'addLoadedModule'
          2        FETCH_THIS                                       $1      
          3        SEND_VAR_EX                                              $1
          4        DO_FCALL                                      0          
   82     5      > RETURN                                                   null

End of function setinstance

Function getinstance:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kAHU6
function name:  getInstance
number of ops:  12
compiled vars:  !0 = $loadedModules
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   86     0  E >   FETCH_STATIC_PROP_R          unknown             ~1      'app'
          1        INIT_METHOD_CALL                                         ~1, 'getLoadedModules'
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                                   !0, $2
   87     4        FETCH_CLASS_NAME                                 ~4      
          5        ISSET_ISEMPTY_DIM_OBJ                         0          !0, ~4
          6      > JMPZ                                                     ~5, ->10
   88     7    >   FETCH_CLASS_NAME                                 ~6      
          8        FETCH_DIM_R                                      ~7      !0, ~6
          9      > RETURN                                                   ~7
   91    10    > > RETURN                                                   null
   92    11*     > RETURN                                                   null

End of function getinstance

Function getmodule:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 25
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kAHU6
function name:  getModule
number of ops:  26
compiled vars:  !0 = $name, !1 = $class, !2 = $module
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   94     0  E >   RECV                                             !0      
   95     1        FETCH_OBJ_IS                                     ~3      'modules'
          2        ISSET_ISEMPTY_DIM_OBJ                         0          ~3, !0
          3      > JMPZ                                                     ~4, ->25
   96     4    >   INIT_NS_FCALL_BY_NAME                                    'app%5Cis_object'
          5        CHECK_FUNC_ARG                                           
          6        FETCH_OBJ_FUNC_ARG                               $5      'modules'
          7        FETCH_DIM_FUNC_ARG                               $6      $5, !0
          8        SEND_FUNC_ARG                                            $6
          9        DO_FCALL                                      0  $7      
         10      > JMPZ                                                     $7, ->15
   97    11    >   FETCH_OBJ_R                                      ~8      'modules'
         12        FETCH_DIM_R                                      ~9      ~8, !0
         13      > RETURN                                                   ~9
   96    14*       JMP                                                      ->25
   99    15    >   FETCH_OBJ_R                                      ~10     'modules'
         16        FETCH_DIM_R                                      ~11     ~10, !0
         17        ASSIGN                                                   !1, ~11
  100    18        FETCH_CLASS                                   0  $13     !1
         19        NEW                                              $14     $13
         20        DO_FCALL                                      0          
         21        ASSIGN                                                   !2, $14
  101    22        INIT_METHOD_CALL                                         !2, 'setInstance'
         23        DO_FCALL                                      0          
  102    24      > RETURN                                                   !2
  105    25    > > RETURN                                                   null

End of function getmodule

Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 117
Branch analysis from position: 15
2 jumps found. (Code = 47) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 106
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 55
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 55
2 jumps found. (Code = 46) Position 1 = 57, Position 2 = 63
Branch analysis from position: 57
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 75
Branch analysis from position: 64
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 75
2 jumps found. (Code = 46) Position 1 = 77, Position 2 = 83
Branch analysis from position: 77
2 jumps found. (Code = 43) Position 1 = 84, Position 2 = 95
Branch analysis from position: 84
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 95
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 83
Branch analysis from position: 63
Branch analysis from position: 106
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 117
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 14
filename:       /in/kAHU6
function name:  __call
number of ops:  129
compiled var

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
379.48 ms | 1055 KiB | 25 Q