3v4l.org

run code in 500+ PHP versions simultaneously
<?php class SomeClass { function methodInjection() {} public function get() { return new ReflectionMethod(...$this->methodInjection(...)); } } $obj = new SomeClass(); var_dump($obj->get());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gO5mO
function name:  (null)
number of ops:  9
compiled vars:  !0 = $obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   NEW                                                  $1      'SomeClass'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   15     3        INIT_FCALL                                                   'var_dump'
          4        INIT_METHOD_CALL                                             !0, 'get'
          5        DO_FCALL                                          0  $4      
          6        SEND_VAR                                                     $4
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

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

End of function methodinjection

Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gO5mO
function name:  get
number of ops:  8
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   NEW                                                  $0      'ReflectionMethod'
          1        INIT_METHOD_CALL                                             'methodInjection'
          2        CALLABLE_CONVERT                                     ~1      
          3        SEND_UNPACK                                                  ~1
          4        CHECK_UNDEF_ARGS                                             
          5        DO_FCALL                                          1          
          6      > RETURN                                                       $0
   11     7*     > RETURN                                                       null

End of function get

End of class SomeClass.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171 ms | 1111 KiB | 14 Q