3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Foo { case Bar; } enum Baz: int { case Beep = 5; } print_r(Foo::Bar); print_r(Baz::Beep);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4CvNV
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'foo'
    7     1        DECLARE_CLASS                                            'baz'
   11     2        INIT_FCALL                                               'print_r'
          3        FETCH_CLASS_CONSTANT                             ~0      'Foo', 'Bar'
          4        SEND_VAL                                                 ~0
          5        DO_ICALL                                                 
   12     6        INIT_FCALL                                               'print_r'
          7        FETCH_CLASS_CONSTANT                             ~2      'Baz', 'Beep'
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class Foo: [no user functions]
Class Baz: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.25 ms | 1000 KiB | 14 Q