3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Selami\Foundation\App; class MyClass { public function __construct(App $app) { } } $class = new ReflectionClass(MyClass::class); $constructor = $class->getConstructor(); var_dump($constructor);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RYlPK
function name:  (null)
number of ops:  11
compiled vars:  !0 = $class, !1 = $constructor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $2      'ReflectionClass'
          1        SEND_VAL_EX                                              'MyClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   15     4        INIT_METHOD_CALL                                         !0, 'getConstructor'
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
   16     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

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

End of function __construct

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.7 ms | 1399 KiB | 15 Q