3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Accessor { public static function int():int { var_dump(new ReflectionEnum(self)); } } enum Titular: int { use Accessor; case minimus=1; case maximus=2; } echo Titular::minimus::int();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uHXGW
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'titular'
   18     1        FETCH_CLASS_CONSTANT                             ~0      'Titular', 'minimus'
          2        FETCH_CLASS                                   0  $1      ~0
          3        INIT_STATIC_METHOD_CALL                                  $1, 'int'
          4        DO_FCALL                                      0  $2      
          5        ECHO                                                     $2
          6      > RETURN                                                   1

Class Accessor:
Function int:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uHXGW
function name:  int
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'ReflectionEnum'
          2        FETCH_CONSTANT                                   ~1      'self'
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0          
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    8     7        VERIFY_RETURN_TYPE                                       
          8      > RETURN                                                   null

End of function int

End of class Accessor.

Class Titular: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.04 ms | 956 KiB | 14 Q