3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { function test(int $a, string $b) { } } var_dump((new ReflectionMethod(Foo::class, 'test'))->getParameters());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cFOVa
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                                   'var_dump'
          1        NEW                                                  $0      'ReflectionMethod'
          2        SEND_VAL_EX                                                  'Foo'
          3        SEND_VAL_EX                                                  'test'
          4        DO_FCALL                                          0          
          5        INIT_METHOD_CALL                                             $0, 'getParameters'
          6        DO_FCALL                                          0  $2      
          7        SEND_VAR                                                     $2
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

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

End of function test

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
178.68 ms | 3409 KiB | 14 Q