3v4l.org

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

End of function __construct

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.65 ms | 1394 KiB | 15 Q