3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo { private function bar($a = self::class) {} } $refMethod = new \ReflectionMethod('Foo', 'bar'); echo "Exported: ", $refMethod;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3TdIg
function name:  (null)
number of ops:  8
compiled vars:  !0 = $refMethod
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'ReflectionMethod'
          1        SEND_VAL_EX                                              'Foo'
          2        SEND_VAL_EX                                              'bar'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   10     5        ECHO                                                     'Exported%3A+'
          6        ECHO                                                     !0
          7      > RETURN                                                   1

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

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.46 ms | 1393 KiB | 13 Q