3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Month extends SplEnum { const January = 1; const February = 2; const March = 3; const April = 4; const May = 5; const June = 6; const July = 7; const August = 8; const September = 9; const October = 10; const November = 11; const December = 12; } print_r(Month::getConstList());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h2qEl
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'month', 'splenum'
   18     1        INIT_FCALL                                               'print_r'
          2        INIT_STATIC_METHOD_CALL                                  'Month', 'getConstList'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Class Month: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.5 ms | 1393 KiB | 15 Q