3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Test: string { case X = 'x'; } $x = Test::X; var_dump($x instanceof BackedEnum);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aR0ur
function name:  (null)
number of ops:  8
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'test'
    8     1        FETCH_CLASS_CONSTANT                             ~1      'Test', 'X'
          2        ASSIGN                                                   !0, ~1
   10     3        INIT_FCALL                                               'var_dump'
          4        INSTANCEOF                                       ~3      !0, 'BackedEnum'
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.13 ms | 996 KiB | 14 Q