3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface Valueable{ const myVariable = 12; } class ValueA implements Valueable{ public function show(){ echo Valueable::myVariable; } } $objValueA = new ValueA(); $objValueA->show(); echo $objValueA::myVariable;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NstRX
function name:  (null)
number of ops:  10
compiled vars:  !0 = $objValueA
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                                'valuea'
   13     1        NEW                                                  $1      'ValueA'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   14     4        INIT_METHOD_CALL                                             !0, 'show'
          5        DO_FCALL                                          0          
   15     6        FETCH_CLASS                                       0  $5      !0
          7        FETCH_CLASS_CONSTANT                                 ~6      $5, 'myVariable'
          8        ECHO                                                         ~6
          9      > RETURN                                                       1

Class Valueable: [no user functions]
Class ValueA:
Function show:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NstRX
function name:  show
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                         12
   10     1      > RETURN                                                       null

End of function show

End of class ValueA.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.63 ms | 2707 KiB | 13 Q