3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function aa(){ print 1; } public function __invoke(){} } $reflection = new ReflectionMethod("A", "__invoke"); print $reflection->isPublic();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8na6r
function name:  (null)
number of ops:  9
compiled vars:  !0 = $reflection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'ReflectionMethod'
          1        SEND_VAL_EX                                              'A'
          2        SEND_VAL_EX                                              '__invoke'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   13     5        INIT_METHOD_CALL                                         !0, 'isPublic'
          6        DO_FCALL                                      0  $4      
          7        ECHO                                                     $4
          8      > RETURN                                                   1

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

End of function aa

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

End of function __invoke

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.33 ms | 1393 KiB | 13 Q