3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("DATA_PATH", "AAA"); defined('DATA_FILE') or define('DATA_FILE', DATA_PATH."file_name"); class Util { public static $FILE_PATH = DATA_FILE; } echo Util::$FILE_PATH;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/gXSsn
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'DATA_PATH'
          2        SEND_VAL                                                 'AAA'
          3        DO_ICALL                                                 
    4     4        DEFINED                                          ~1      'DATA_FILE'
          5      > JMPNZ_EX                                         ~1      ~1, ->13
          6    >   INIT_FCALL                                               'define'
          7        SEND_VAL                                                 'DATA_FILE'
          8        FETCH_CONSTANT                                   ~2      'DATA_PATH'
          9        CONCAT                                           ~3      ~2, 'file_name'
         10        SEND_VAL                                                 ~3
         11        DO_ICALL                                         $4      
         12        BOOL                                             ~1      $4
   10    13    >   FETCH_STATIC_PROP_R          unknown             ~5      'FILE_PATH'
         14        ECHO                                                     ~5
         15      > RETURN                                                   1

Class Util: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.03 ms | 1009 KiB | 14 Q