3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PhpNw15Conference { } /** * Class Controller */ class Controller { /** * @return array */ public function __construct(PhpNw15Conference $conference) { $this->conference = $conference; } } /** Controller Resolver **/ $controller = 'Controller'; // Retrieved from URL + YAML config $action = 'speakersAction'; // Retrieved from URL + Yaml config $params = array(); // Retrieved from GET / POST parameters $reflector = new \ReflectionClass('Controller'); var_dump($reflector->getConstructor()->getParameters());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/55npS
function name:  (null)
number of ops:  15
compiled vars:  !0 = $controller, !1 = $action, !2 = $params, !3 = $reflector
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ASSIGN                                                   !0, 'Controller'
   21     1        ASSIGN                                                   !1, 'speakersAction'
   22     2        ASSIGN                                                   !2, <array>
   24     3        NEW                                              $7      'ReflectionClass'
          4        SEND_VAL_EX                                              'Controller'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !3, $7
   26     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !3, 'getConstructor'
          9        DO_FCALL                                      0  $10     
         10        INIT_METHOD_CALL                                         $10, 'getParameters'
         11        DO_FCALL                                      0  $11     
         12        SEND_VAR                                                 $11
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Class PhpNw15Conference: [no user functions]
Class Controller:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/55npS
function name:  __construct
number of ops:  4
compiled vars:  !0 = $conference
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   15     1        ASSIGN_OBJ                                               'conference'
          2        OP_DATA                                                  !0
   16     3      > RETURN                                                   null

End of function __construct

End of class Controller.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.37 ms | 1395 KiB | 15 Q