3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(self $baz) { } } $r = new ReflectionParameter([Foo::class, 'bar'], 'baz'); var_dump($r);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OKP77
function name:  (null)
number of ops:  9
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'ReflectionParameter'
          1        SEND_VAL_EX                                              <array>
          2        SEND_VAL_EX                                              'baz'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
    8     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

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

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.99 ms | 1385 KiB | 15 Q