3v4l.org

run code in 500+ PHP versions simultaneously
<?php final class SkipUsedByReflectionAsArrayCallable { public function run(): int { $reflectionMethod = new \ReflectionMethod(...[$this, 'methodInjection']); return $reflectionMethod->getNumberOfParameters(); } private function methodInjection(): void { } } $obj = new SkipUsedByReflectionAsArrayCallable(); echo $obj->run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2vaUL
function name:  (null)
number of ops:  7
compiled vars:  !0 = $obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   NEW                                                  $1      'SkipUsedByReflectionAsArrayCallable'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   18     3        INIT_METHOD_CALL                                             !0, 'run'
          4        DO_FCALL                                          0  $4      
          5        ECHO                                                         $4
          6      > RETURN                                                       1

Class SkipUsedByReflectionAsArrayCallable:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2vaUL
function name:  run
number of ops:  14
compiled vars:  !0 = $reflectionMethod
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $1      'ReflectionMethod'
          1        FETCH_THIS                                           ~2      
          2        INIT_ARRAY                                           ~3      ~2
          3        ADD_ARRAY_ELEMENT                                    ~3      'methodInjection'
          4        SEND_UNPACK                                                  ~3
          5        CHECK_UNDEF_ARGS                                             
          6        DO_FCALL                                          1          
          7        ASSIGN                                                       !0, $1
    9     8        INIT_METHOD_CALL                                             !0, 'getNumberOfParameters'
          9        DO_FCALL                                          0  $6      
         10        VERIFY_RETURN_TYPE                                           $6
         11      > RETURN                                                       $6
   10    12*       VERIFY_RETURN_TYPE                                           
         13*     > RETURN                                                       null

End of function run

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

End of function methodinjection

End of class SkipUsedByReflectionAsArrayCallable.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.58 ms | 1105 KiB | 13 Q