3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { const BAR = 42; } $x = new Foo; var_dump( $x::BAR );
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/7Oe6T
function name:  (null)
number of ops:  10
compiled vars:  !0 = $x
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   8     1        NEW                                              $2      :-6
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $2
   9     4        INIT_FCALL                                               'var_dump'
         5        FETCH_CLASS                                 512  :5      !0
         6        FETCH_CONSTANT                                   ~6      $5, 'BAR'
         7        SEND_VAL                                                 ~6
         8        DO_ICALL                                                 
         9      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.2.0