3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Config { public function merge(self $merge){ } } $ref = new ReflectionMethod("Config", "merge"); echo $ref->getParameters()[0]->getType()->getName();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nM5RO
function name:  (null)
number of ops:  14
compiled vars:  !0 = $ref
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   NEW                                                  $1      'ReflectionMethod'
          1        SEND_VAL_EX                                                  'Config'
          2        SEND_VAL_EX                                                  'merge'
          3        DO_FCALL                                          0          
          4        ASSIGN                                                       !0, $1
    9     5        INIT_METHOD_CALL                                             !0, 'getParameters'
          6        DO_FCALL                                          0  $4      
          7        FETCH_DIM_R                                          ~5      $4, 0
          8        INIT_METHOD_CALL                                             ~5, 'getType'
          9        DO_FCALL                                          0  $6      
         10        INIT_METHOD_CALL                                             $6, 'getName'
         11        DO_FCALL                                          0  $7      
         12        ECHO                                                         $7
         13      > RETURN                                                       1

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

End of function merge

End of class Config.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
208.84 ms | 2215 KiB | 13 Q