3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * This is fucking stupid */ 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'); var_dump($d); var_dump($d->getDocComment());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2I74W
function name:  (null)
number of ops:  13
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   NEW                                              $1      'ReflectionClass'
          1        SEND_VAL_EX                                              'ConfusedBullshit'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   30     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   31     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !0, 'getDocComment'
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         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/2I74W
function name:  bullshit
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E > > RETURN                                                   <false>
   18     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/2I74W
function name:  bullshit
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E > > RETURN                                                   <true>
   25     1*     > RETURN                                                   null

End of function bullshit

End of class ConfusedBullshit.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.52 ms | 940 KiB | 16 Q