3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I1 { const C1 = '';} class C3 implements I1 { const C1 = 'c2';} $c3 = new C3; var_dump($c3::C1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jIcs6
function name:  (null)
number of ops:  10
compiled vars:  !0 = $c3
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                                'c3'
    4     1        NEW                                                  $1      'C3'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
    5     4        INIT_FCALL                                                   'var_dump'
          5        FETCH_CLASS                                       0  $4      !0
          6        FETCH_CLASS_CONSTANT                                 ~5      $4, 'C1'
          7        SEND_VAL                                                     ~5
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Class I1: [no user functions]
Class C3: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
234.23 ms | 2313 KiB | 14 Q