3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum A: string { case B = 'b'; case C = 'c'; } $val = A::from('b'); var_dump($val);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n1IM5
function name:  (null)
number of ops:  9
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'a'
    8     1        INIT_STATIC_METHOD_CALL                                  'A', 'from'
          2        SEND_VAL_EX                                              'b'
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
    9     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.08 ms | 1008 KiB | 14 Q