3v4l.org

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

Class someClass:
Function aaa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EOE2L
function name:  aaa
number of ops:  12
compiled vars:  !0 = $method, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $2      'ReflectionMethod'
          1        SEND_VAL_EX                                              'someClass'
          2        SEND_VAL_EX                                              'aaa'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    6     5        ASSIGN                                                   !1, ''
    8     6        INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         !0, 'getParameters'
          8        DO_FCALL                                      0  $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
    9    11      > RETURN                                                   null

End of function aaa

End of class someClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.05 ms | 1395 KiB | 15 Q