3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Status: int { case Open = 1; case Close = 2; case Invalid = 3; const Values = [ self::Open->value => self::Open, self::Close->value => self::Close, self::Invalid->value => self::Invalid, ]; } class Foo { const BAR = Status::Values; } var_dump(Foo::BAR);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cDmN8
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'status'
   20     1        INIT_FCALL                                               'var_dump'
          2        FETCH_CLASS_CONSTANT                             ~0      'Foo', 'BAR'
          3        SEND_VAL                                                 ~0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
121.89 ms | 1443 KiB | 14 Q