3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { const BAR = 0 + self::FOO; const FOO = 0 + self::BAR; } var_dump(test::BAR);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/LJD8H
function name:  (null)
number of ops:  6
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NOP                                                      
   6     1        INIT_FCALL                                               'var_dump'
         2        FETCH_CONSTANT                                   ~1      'test', 'BAR'
         3        SEND_VAL                                                 ~1
         4        DO_ICALL                                                 
         5      > RETURN                                                   1

Class test: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.2.0