3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); //define('B', 'pre'); class test { const A = B; static function name() { echo @self::A . 'key'; } static function init() { self::name(); } } test::init();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sevju
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   16     3        INIT_STATIC_METHOD_CALL                                  'test', 'init'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class test:
Function name:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sevju
function name:  name
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   BEGIN_SILENCE                                    ~0      
          1        FETCH_CLASS_CONSTANT                             ~1      'A'
          2        END_SILENCE                                              ~0
          3        CONCAT                                           ~2      ~1, 'key'
          4        ECHO                                                     ~2
   10     5      > RETURN                                                   null

End of function name

Function init:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sevju
function name:  init
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'name'
          1        DO_FCALL                                      0          
   14     2      > RETURN                                                   null

End of function init

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.98 ms | 1395 KiB | 15 Q