3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface i {} enum A1 implements i { case A; case B; } enum A2 implements i { case C; case D; } function foo(i $e) { var_dump($e); } foo(A1::A); foo(A2::C);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e6Jca
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                                'a1'
   10     1        DECLARE_CLASS                                                'a2'
   19     2        INIT_FCALL                                                   'foo'
          3        FETCH_CLASS_CONSTANT                                 ~0      'A1', 'A'
          4        SEND_VAL                                                     ~0
          5        DO_FCALL                                          0          
   20     6        INIT_FCALL                                                   'foo'
          7        FETCH_CLASS_CONSTANT                                 ~2      'A2', 'C'
          8        SEND_VAL                                                     ~2
          9        DO_FCALL                                          0          
         10      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e6Jca
function name:  foo
number of ops:  5
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   RECV                                                 !0      
   16     1        INIT_FCALL                                                   'var_dump'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
   17     4      > RETURN                                                       null

End of function foo

Class i: [no user functions]
Class A1: [no user functions]
Class A2: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
145.13 ms | 487 KiB | 11 Q