3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __invoke() {} } $r = (new \ReflectionObject(new Foo()))->getMethod('__invoke');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pi1WS
function name:  (null)
number of ops:  10
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'ReflectionObject'
          1        NEW                                              $2      'Foo'
          2        DO_FCALL                                      0          
          3        SEND_VAR_NO_REF_EX                                       $2
          4        DO_FCALL                                      0          
          5        INIT_METHOD_CALL                                         $1, 'getMethod'
          6        SEND_VAL_EX                                              '__invoke'
          7        DO_FCALL                                      0  $5      
          8        ASSIGN                                                   !0, $5
          9      > RETURN                                                   1

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

End of function __invoke

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.26 ms | 1393 KiB | 13 Q