3v4l.org

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

Class Qux: [no user functions]
Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/osYMj
function name:  bar
number of ops:  2
compiled vars:  !0 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     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:
153.19 ms | 1399 KiB | 15 Q