3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function B(){}} $test= new ReflectionMethod('A','B'); echo "\n".$test->getFileName(); echo "\n".$test->getName();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CQXON
function name:  (null)
number of ops:  14
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $1      'ReflectionMethod'
          1        SEND_VAL_EX                                              'A'
          2        SEND_VAL_EX                                              'B'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
    6     5        INIT_METHOD_CALL                                         !0, 'getFileName'
          6        DO_FCALL                                      0  $4      
          7        CONCAT                                           ~5      '%0A', $4
          8        ECHO                                                     ~5
    7     9        INIT_METHOD_CALL                                         !0, 'getName'
         10        DO_FCALL                                      0  $6      
         11        CONCAT                                           ~7      '%0A', $6
         12        ECHO                                                     ~7
         13      > RETURN                                                   1

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

End of function b

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.74 ms | 1393 KiB | 13 Q