3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface truc { const OK = 'OK'; } abstract class A implements truc { } class B extends A { const OK = 'PAS OK'; } echo B::OK;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r5QsH
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'a'
   13     1        DECLARE_CLASS                                            'b', 'a'
   18     2        FETCH_CLASS_CONSTANT                             ~0      'B', 'OK'
          3        ECHO                                                     ~0
          4      > RETURN                                                   1

Class truc: [no user functions]
Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.83 ms | 1383 KiB | 13 Q