3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { function foo(T $t) {} } $r = new ReflectionClass('C'); $m = $r->getMethod('foo'); $p = $m->getParameter('t'); var_export($p);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2iIkk
function name:  (null)
number of ops:  16
compiled vars:  !0 = $r, !1 = $m, !2 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $3      'ReflectionClass'
          1        SEND_VAL_EX                                              'C'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    8     4        INIT_METHOD_CALL                                         !0, 'getMethod'
          5        SEND_VAL_EX                                              'foo'
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !1, $6
    9     8        INIT_METHOD_CALL                                         !1, 'getParameter'
          9        SEND_VAL_EX                                              't'
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !2, $8
   10    12        INIT_FCALL                                               'var_export'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

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

End of function foo

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.05 ms | 1386 KiB | 15 Q