3v4l.org

run code in 300+ PHP versions simultaneously
<?php const DIR_PATH_LINUX = '/opt/myprogram/'; const DIR_PATH_WINDOWS = 'C:\xampp\htdocs\\parspack\\storage\\myprogram\\'; $os = 'windows'; echo DIR_PATH_."strtoupper($os)";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TGoKZ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $os
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CONST                                            'DIR_PATH_LINUX', '%2Fopt%2Fmyprogram%2F'
    3     1        DECLARE_CONST                                            'DIR_PATH_WINDOWS', 'C%3A%5Cxampp%5Chtdocs%5Cparspack%5Cstorage%5Cmyprogram%5C'
    5     2        ASSIGN                                                   !0, 'windows'
    7     3        FETCH_CONSTANT                                   ~2      'DIR_PATH_'
          4        ROPE_INIT                                     3  ~4      'strtoupper%28'
          5        ROPE_ADD                                      1  ~4      ~4, !0
          6        ROPE_END                                      2  ~3      ~4, '%29'
          7        CONCAT                                           ~6      ~2, ~3
          8        ECHO                                                     ~6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.74 ms | 1392 KiB | 13 Q