3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); date_default_timezone_set(PRC); //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/LYf8C
function name:  (null)
number of ops:  10
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                                                 
    3     3        INIT_FCALL                                               'date_default_timezone_set'
          4        FETCH_CONSTANT                                   ~1      'PRC'
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                                 
   17     7        INIT_STATIC_METHOD_CALL                                  'test', 'init'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class test:
Function name:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LYf8C
function name:  name
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   BEGIN_SILENCE                                    ~0      
          1        FETCH_CLASS_CONSTANT                             ~1      'A'
          2        END_SILENCE                                              ~0
          3        CONCAT                                           ~2      ~1, 'key'
          4        ECHO                                                     ~2
   11     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/LYf8C
function name:  init
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_STATIC_METHOD_CALL                                  'name'
          1        DO_FCALL                                      0          
   15     2      > RETURN                                                   null

End of function init

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.9 ms | 1395 KiB | 17 Q