3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class ConfusingClass{ /** * Private property */ private $property = 'fucking stupid'; /** * Why does this keep happening? * * @bullshit true */ private static function bullshit() { return false; } } class ConfusedBullshit extends ConfusingClass { private static function bullshit() { return true; } } $d = new ReflectionClass('ConfusedBullshit'); print_r($d); var_dump($ref->getDocComment());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tj5AF
function name:  (null)
number of ops:  13
compiled vars:  !0 = $d, !1 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   NEW                                              $2      'ReflectionClass'
          1        SEND_VAL_EX                                              'ConfusedBullshit'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   27     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   28     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !1, 'getDocComment'
          9        DO_FCALL                                      0  $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

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

End of function bullshit

End of class ConfusingClass.

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

End of function bullshit

End of class ConfusedBullshit.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
228.89 ms | 1395 KiB | 17 Q