3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace { try { $parent = new Package\MyParent(); $parent->test(); } catch (\Throwable $e) { var_dump($e); } try { $pubChild = new Package\MyParent\PublicChild();//create new public child (possible) } catch (\Throwable $e) { var_dump($e); } try { $protChild = new Package\MyParent\ProtectedChild(); //create new protected child (ERROR) } catch (\Throwable $e) { var_dump($e); } class Package { /* protect constructor so that objects can't be instantiated from outside * Since all classes inherit from Package class, they can instantiate eachother * simulating protected InnerClasses */ protected function __construct() { } /* This magic method is called everytime an inaccessible method is called * (either by visibility contrains or it doesn't exist) * Here we are simulating shared protected methods across "package" classes * This method is inherited by all child classes of Package */ public function __call($method, $args) { //class name $class = get_class($this); /* we check if a method exists, if not we throw an exception * similar to the default error */ if (method_exists($this, $method)) { /* The method exists so now we want to know if the * caller is a child of our Package class. If not we throw an exception * Note: This is a kind of a dirty way of finding out who's * calling the method by using debug_backtrace and reflection */ $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3); if (isset($trace[2])) { $ref = new ReflectionClass($trace[2]['class']); if ($ref->isSubclassOf(__CLASS__)) { return $this->$method($args); } } throw new RuntimeException("Call to private method $class::$method()"); } else { throw new RuntimeException("Call to undefined method $class::$method()"); } } } } namespace Package { class MyParent extends \Package { public $publicChild; protected $protectedChild; public function __construct() { //instantiate public child inside parent $this->publicChild = new \Package\MyParent\PublicChild(); //instantiate protected child inside parent $this->protectedChild = new \Package\MyParent\ProtectedChild(); } public function test(): void { echo "Call from parent -> "; $this->publicChild->protectedMethod(); $this->protectedChild->protectedMethod(); echo "<br>Siblings<br>"; $this->publicChild->callSibling($this->protectedChild); } } } namespace Package\MyParent { class PublicChild extends \Package { //Makes the constructor public, hence callable from outside public function __construct() { } protected function protectedMethod(): void { echo "I'm " . get_class($this) . " protected method<br>"; } protected function callSibling($sibling): void { echo "Call from " . get_class($this) . " -> "; $sibling->protectedMethod(); } } class ProtectedChild extends \Package { protected function protectedMethod(): void { echo "I'm " . get_class($this) . " protected method<br>"; } protected function callSibling($sibling): void { echo "Call from " . get_class($this) . " -> "; $sibling->protectedMethod(); } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Found catch point at position: 14
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Found catch point at position: 22
Branch analysis from position: 22
2 jumps found. (Code = 107) Position 1 = 23, Position 2 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CFRbg
function name:  (null)
number of ops:  27
compiled vars:  !0 = $parent, !1 = $e, !2 = $pubChild, !3 = $protChild
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $4      'Package%5CMyParent'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    6     3        INIT_METHOD_CALL                                         !0, 'test'
          4        DO_FCALL                                      0          
          5      > JMP                                                      ->10
    7     6  E > > CATCH                                       last         'Throwable'
    8     7    >   INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   11    10    >   NEW                                              $9      'Package%5CMyParent%5CPublicChild'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !2, $9
         13      > JMP                                                      ->18
   12    14  E > > CATCH                                       last         'Throwable'
   13    15    >   INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   16    18    >   NEW                                              $13     'Package%5CMyParent%5CProtectedChild'
         19        DO_FCALL                                      0          
         20        ASSIGN                                                   !3, $13
         21      > JMP                                                      ->26
   17    22  E > > CATCH                                       last         'Throwable'
   18    23    >   INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                                 
  129    26    > > RETURN                                                   1

Class Package:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CFRbg
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E > > RETURN                                                   null

End of function __construct

Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 43
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 33
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 33
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 43
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/CFRbg
function name:  __call
number of ops:  53
compiled vars:  !0 = $method, !1 = $args, !2 = $class, !3 = $trace, !4 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   41     2        FETCH_THIS                                       ~5      
          3        GET_CLASS                                        ~6      ~5
          4        ASSIGN                                                   !2, ~6
   46     5        INIT_FCALL                                               'method_exists'
          6        FETCH_THIS                                       ~8      
          7        SEND_VAL                                                 ~8
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $9      
         10      > JMPZ                                                     $9, ->43
   53    11    >   INIT_FCALL                                               'debug_backtrace'
         12        SEND_VAL                                                 2
         13        SEND_VAL                                                 3
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
   54    16        ISSET_ISEMPTY_DIM_OBJ                         0          !3, 2
         17      > JMPZ                                                     ~12, ->33
   55    18    >   NEW                                              $13     'ReflectionClass'
         19        CHECK_FUNC_ARG                                           
         20        FETCH_DIM_FUNC_ARG                               $14     !3, 2
         21        FETCH_DIM_FUNC_ARG                               $15     $14, 'class'
         22        SEND_FUNC_ARG                                            $15
         23        DO_FCALL                                      0          
         24        ASSIGN                                                   !4, $13
   56    25        INIT_METHOD_CALL                                         !4, 'isSubclassOf'
         26        SEND_VAL_EX                                              'Package'
         27        DO_FCALL                                      0  $18     
         28      > JMPZ                                                     $18, ->33
   57    29    >   INIT_METHOD_CALL                                         !0
         30        SEND_VAR_EX                                              !1
         31        DO_FCALL                                      0  $19     
         32      > RETURN                                                   $19
   60    33    >   NEW                                              $20     'RuntimeException'
         34        ROPE_INIT                                     5  ~22     'Call+to+private+method+'
         35        ROPE_ADD                                      1  ~22     ~22, !2
         36        ROPE_ADD                                      2  ~22     ~22, '%3A%3A'
         37        ROPE_ADD                                      3  ~22     ~22, !0
         38        ROPE_END                                      4  ~21     ~22, '%28%29'
         39        SEND_VAL_EX                                              ~21
         40        DO_FCALL                                      0          
         41      > THROW                                         0          $20
         42*       JMP                                                      ->52
   62    43    >   NEW                                              $26     'RuntimeException'
         44        ROPE_INIT                                     5  ~28     'Call+to+undefined+method+'
         45        ROPE_ADD                                      1  ~28     ~28, !2
         46        ROPE_ADD                                      2  ~28     ~28, '%3A%3A'
         47        ROPE_ADD                                      3  ~28     ~28, !0
         48        ROPE_END                                      4  ~27     ~28, '%28%29'
         49        SEND_VAL_EX                                              ~27
         50        DO_FCALL                                      0          
         51      > THROW                                         0          $26
   64    52*     > RETURN                                                   null

End of function __call

End of class Package.

Class Package\MyParent:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CFRbg
function name:  __construct
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   78     0  E >   NEW                                              $1      'Package%5CMyParent%5CPublicChild'
          1        DO_FCALL                                      0          
          2        ASSIGN_OBJ                                               'publicChild'
          3        OP_DATA                                                  $1
   80     4        NEW                                              $4      'Package%5CMyParent%5CProtectedChild'
          5        DO_FCALL                                      0          
          6        ASSIGN_OBJ                                               'protectedChild'
          7        OP_DATA                                                  $4
   81     8      > RETURN                                                   null

End of function __construct

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CFRbg
function name:  test
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   85     0  E >   ECHO                                                     'Call+from+parent+-%3E+'
   86     1        FETCH_OBJ_R                                      ~0      'publicChild'
          2        INIT_METHOD_CALL                                         ~0, 'protectedMethod'
          3        DO_FCALL                                      0          
   87     4        FETCH_OBJ_R                                      ~2      'protectedChild'
          5        INIT_METHOD_CALL                                         ~2, 'protectedMethod'
          6        DO_FCALL                                      0          
   89     7        ECHO                                                     '%3Cbr%3ESiblings%3Cbr%3E'
   90     8        FETCH_OBJ_R                                      ~4      'publicChild'
          9        INIT_METHOD_CALL                                         ~4, 'callSibling'
         10        CHECK_FUNC_ARG                                           
         11        FETCH_OBJ_FUNC_ARG                               $5      'protectedChild'
         12        SEND_FUNC_ARG                                            $5
         13        DO_FCALL                                      0          
   91    14      > RETURN                                                   null

End of function test

Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 43
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 33
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 33
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 43
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/CFRbg
function name:  __call
number of ops:  53
compiled vars:  !0 = $method, !1 = $args, !2 = $class, !3 = $trace, !4 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   41     2        FETCH_THIS                                       ~5      
          3        GET_CLASS                                        ~6      ~5
          4        ASSIGN                                                   !2, ~6
   46     5        INIT_FCALL                                               'method_exists'
          6        FETCH_THIS                                       ~8      
          7        SEND_VAL                                                 ~8
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $9      
         10      > JMPZ                                                     $9, ->43
   53    11    >   INIT_FCALL                                               'debug_backtrace'
         12        SEND_VAL                                                 2
         13        SEND_VAL                                                 3
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
   54    16        ISSET_ISEMPTY_DIM_OBJ                         0          !3, 2
         17      > JMPZ                                                     ~12, ->33
   55    18    >   NEW                                              $13     'ReflectionClass'
         19        CHECK_FUNC_ARG                                           
         20        FETCH_DIM_FUNC_ARG                               $14     !3, 2
         21        FETCH_DIM_FUNC_ARG                               $15     $14, 'class'
         22        SEND_FUNC_ARG                                            $15
         23        DO_FCALL                                      0          
         24        ASSIGN                                                   !4, $13
   56    25        INIT_METHOD_CALL                                         !4, 'isSubclassOf'
         26        SEND_VAL_EX                                              'Package'
         27        DO_FCALL                                      0  $18     
         28      > JMPZ                                                     $18, ->33
   57    29    >   INIT_METHOD_CALL                                         !0
         30        SEND_VAR_EX                                              !1
         31        DO_FCALL                                      0  $19     
         32      > RETURN                                                   $19
   60    33    >   NEW                                              $20     'RuntimeException'
         34        ROPE_INIT                                     5  ~22     'Call+to+private+method+'
         35        ROPE_ADD                                      1  ~22     ~22, !2
         36        ROPE_ADD                                      2  ~22     ~22, '%3A%3A'
         37        ROPE_ADD                                      3  ~22     ~22, !0
         38        ROPE_END                                      4  ~21     ~22, '%28%29'
         39        SEND_VAL_EX                                              ~21
         40        DO_FCALL                                      0          
         41      > THROW                                         0          $20
         42*       JMP                                                      ->52
   62    43    >   NEW                                              $26     'RuntimeException'
         44        ROPE_INIT                                     5  ~28     'Call+to+undefined+method+'
         45        ROPE_ADD                                      1  ~28     ~28, !2
         46        ROPE_ADD                                      2  ~28     ~28, '%3A%3A'
         47        ROPE_ADD                                      3  ~28     ~28, !0
         48        ROPE_END                                      4  ~27     ~28, '%28%29'
         49        SEND_VAL_EX                                              ~27
         50        DO_FCALL                                      0          
         51      > THROW                                         0          $26
   64    52*     > RETURN                                                   null

End of function __call

End of class Package\MyParent.

Class Package\MyParent\PublicChild:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CFRbg
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  102     0  E > > RETURN                                                   null

End of function __construct

Function protectedmethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CFRbg
function name:  protectedMethod
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  106     0  E >   INIT_NS_FCALL_BY_NAME                                    'Package%5CMyParent%5Cget_class'
          1        FETCH_THIS                                       $0      
          2        SEND_VAR_EX                                              $0
          3        DO_FCALL                                      0  $1      
          4        CONCAT                                           ~2      'I%27m+', $1
          5        CONCAT                                           ~3      ~2, '+protected+method%3Cbr%3E'
          6        ECHO                                                     ~3
  107     7      > RETURN                                                   null

End of function protectedmethod

Function callsibling:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CFRbg
function name:  callSibling
number of ops:  11
compiled vars:  !0 = $sibling
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  109     0  E >   RECV                                             !0      
  111     1        INIT_NS_FCALL_BY_NAME                                    'Package%5CMyParent%5Cget_class'
          2        FETCH_THIS                                       $1      
          3        SEND_VAR_EX                                              $1
          4        DO_FCALL                                      0  $2      
          5        CONCAT                                           ~3      'Call+from+', $2
          6        CONCAT                                           ~4      ~3, '+-%3E+'
          7        ECHO                                                     ~4
  112     8        INIT_METHOD_CALL                                         !0, 'protectedMethod'
          9        DO_FCALL                                      0          
  113    10      > RETURN                                                   null

End of function callsibling

Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 43
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 33
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 33
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 43
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/CFRbg
function name:  __call
number of ops:  53
compiled vars:  !0 = $method, !1 = $args, !2 = $class, !3 = $trace, !4 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   41     2        FETCH_THIS                                       ~5      
          3        GET_CLASS                                        ~6      ~5
          4        ASSIGN                                                   !2, ~6
   46     5        INIT_FCALL                                               'method_exists'
          6        FETCH_THIS                                       ~8      
          7        SEND_VAL                                                 ~8
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $9      
         10      > JMPZ                                                     $9, ->43
   53    11    >   INIT_FCALL                                               'debug_backtrace'
         12        SEND_VAL                                                 2
         13        SEND_VAL                                                 3
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
   54    16        ISSET_ISEMPTY_DIM_OBJ                         0          !3, 2
         17      > JMPZ                                                     ~12, ->33
   55    18    >   NEW                                              $13     'ReflectionClass'
         19        CHECK_FUNC_ARG                                           
         20        FETCH_DIM_FUNC_ARG                               $14     !3, 2
         21        FETCH_DIM_FUNC_ARG                               $15     $14, 'class'
         22        SEND_FUNC_ARG                                            $15
         23        DO_FCALL                                      0          
         24        ASSIGN                                                   !4, $13
   56    25        INIT_METHOD_CALL                                         !4, 'isSubclassOf'
         26        SEND_VAL_EX                                              'Package'
         27        DO_FCALL                                      0  $18     
         28      > JMPZ                                                     $18, ->33
   57    29    >   INIT_METHOD_CALL                                         !0
         30        SEND_VAR_EX                                              !1
         31        DO_FCALL                                      0  $19     
         32      > RETURN                                                   $19
   60    33    >   NEW                                              $20     'RuntimeException'
         34        ROPE_INIT                                     5  ~22     'Call+to+private+method+'
         35        ROPE_ADD                                      1  ~22     ~22, !2
         36        ROPE_ADD                                      2  ~22     ~22, '%3A%3A'
         37        ROPE_ADD                                      3  ~22     ~22, !0
         38        ROPE_END                                      4  ~21     ~22, '%28%29'
         39        SEND_VAL_EX                                              ~21
         40        DO_FCALL                                      0          
         41      > THROW                                         0          $20
         42*       JMP                                                      ->52
   62    43    >   NEW                                              $26     'RuntimeException'
         44        ROPE_INIT                                     5  ~28     'Call+to+undefined+method+'
         45        ROPE_ADD                                      1  ~28     ~28, !2
         46        ROPE_ADD                                      2  ~28     ~28, '%3A%3A'
         47        ROPE_ADD                                      3  ~28     ~28, !0
         48        ROPE_END                                      4  ~27     ~28, '%28%29'
         49        SEND_VAL_EX                                              ~27
         50        DO_FCALL                                      0          
         51      > THROW                                         0          $26
   64    52*     > RETURN                                                   null

End of function __call

End of class Package\MyParent\PublicChild.

Class Package\MyParent\ProtectedChild:
Function protectedmethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CFRbg
function name:  protectedMethod
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  120     0  E >   INIT_NS_FCALL_BY_NAME                                    'Package%5CMyParent%5Cget_class'
          1        FETCH_THIS                                       $0      
          2        SEND_VAR_EX                                              $0
          3        DO_FCALL                                      0  $1      
          4        CONCAT                                           ~2      'I%27m+', $1
          5        CONCAT                                           ~3      ~2, '+protected+method%3Cbr%3E'
          6        ECHO                                                     ~3
  121     7      > RETURN                                                   null

End of function protectedmethod

Function callsibling:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CFRbg
function name:  callSibling
number of ops:  11
compiled vars:  !0 = $sibling
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  123     0  E >   RECV                                             !0      
  125     1        INIT_NS_FCALL_BY_NAME                                    'Package%5CMyParent%5Cget_class'
          2        FETCH_THIS                                       $1      
          3        SEND_VAR_EX                                              $1
          4        DO_FCALL                                      0  $2      
          5        CONCAT                                           ~3      'Call+from+', $2
          6        CONCAT                                           ~4      ~3, '+-%3E+'
          7        ECHO                                                     ~4
  126     8        INIT_METHOD_CALL                                         !0, 'protectedMethod'
          9        DO_FCALL                                      0          
  127    10      > RETURN                                                   null

End of function callsibling

Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CFRbg
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E > > RETURN                                                   null

End of function __construct

Function __call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 43
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 33
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 33
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 43
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/CFRbg
function name:  __call
number of ops:  53
compiled vars:  !0 = $method, !1 = $args, !2 = $class, !3 = $trace, !4 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   41     2        FETCH_THIS                                       ~5      
          3        GET_CLASS                                        ~6      ~5
          4        ASSIGN                                                   !2, ~6
   46     5        INIT_FCALL                                               'method_exists'
          6        FETCH_THIS                                       ~8      
          7        SEND_VAL                                                 ~8
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $9      
         10      > JMPZ                                                     $9, ->43
   53    11    >   INIT_FCALL                                               'debug_backtrace'
         12        SEND_VAL                                                 2
         13        SEND_VAL                                                 3
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
   54    16        ISSET_ISEMPTY_DIM_OBJ                         0          !3, 2
         17      > JMPZ                                                     ~12, ->33
   55    18    >   NEW                                              $13     'ReflectionClass'
         19        CHECK_FUNC_ARG                                           
         20        FETCH_DIM_FUNC_ARG                               $14     !3, 2
         21        FETCH_DIM_FUNC_ARG                               $15     $14, 'class'
         22        SEND_FUNC_ARG                                            $15
         23        DO_FCALL                                      0          
         24        ASSIGN                                                   !4, $13
   56    25        INIT_METHOD_CALL                                         !4, 'isSubclassOf'
         26        SEND_VAL_EX                                              'Package'
         27        DO_FCALL                                      0  $18     
         28      > JMPZ                                                     $18, ->33
   57    29    >   INIT_METHOD_CALL                                         !0
         30        SEND_VAR_EX                                              !1
         31        DO_FCALL                                      0  $19     
         32      > RETU

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.24 ms | 1428 KiB | 21 Q