3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Foo: string { case Bar = 'abc'; } Foo::from('d');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oltGS
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'foo'
    7     1        INIT_STATIC_METHOD_CALL                                  'Foo', 'from'
          2        SEND_VAL_EX                                              'd'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.34 ms | 993 KiB | 13 Q