3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __destruct() { } } echo (new ReflectionMethod(Test::class, '__destruct'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oR3UK
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $0      'ReflectionMethod'
          1        SEND_VAL_EX                                              'Test'
          2        SEND_VAL_EX                                              '__destruct'
          3        DO_FCALL                                      0          
          4        ECHO                                                     $0
          5      > RETURN                                                   1

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

End of function __destruct

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.69 ms | 993 KiB | 13 Q