3v4l.org

run code in 300+ PHP versions simultaneously
<?php class my { function fu() {} } var_dump(new \ReflectionMethod('my::fu')); var_dump(\ReflectionMethod::createFromMethodName('my::fu'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dQVe4
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'ReflectionMethod'
          2        SEND_VAL_EX                                              'my%3A%3Afu'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    7     6        INIT_FCALL                                               'var_dump'
          7        INIT_STATIC_METHOD_CALL                                  'ReflectionMethod', 'createFromMethodName'
          8        SEND_VAL                                                 'my%3A%3Afu'
          9        DO_FCALL                                      0  $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

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

End of function fu

End of class my.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.26 ms | 1425 KiB | 14 Q