3v4l.org

run code in 300+ PHP versions simultaneously
<?php function autoloader() { var_dump($class); } spl_autoload_register('autoloader'); class foo { const X = bar::X; } var_dump(foo::X);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kZf4m
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        SEND_VAL                                                 'autoloader'
          2        DO_ICALL                                                 
    9     3        INIT_FCALL                                               'var_dump'
          4        FETCH_CLASS_CONSTANT                             ~1      'foo', 'X'
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function autoloader:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kZf4m
function name:  autoloader
number of ops:  4
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAR                                                 !0
          2        DO_ICALL                                                 
          3      > RETURN                                                   null

End of function autoloader

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.5 ms | 1394 KiB | 17 Q