3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.13 ms | 1000 KiB | 14 Q