3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Month extends SplEnum { const __default = self::January; const January = 1; const February = 2; } echo new Month(Month::February) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/04Y4h
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'month', 'splenum'
    9     1        NEW                                              $0      'Month'
          2        FETCH_CLASS_CONSTANT                             ~1      'Month', 'February'
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0          
          5        CONCAT                                           ~3      $0, '%0A'
          6        ECHO                                                     ~3
          7      > RETURN                                                   1

Class Month: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.81 ms | 1392 KiB | 13 Q