3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Hauptkonfigurationsdatei * @package redaxo4 */ define('REX_MIN_PHP_VERSION', '5.3.0'); if (version_compare(PHP_VERSION, REX_MIN_PHP_VERSION) < 0) { exit('PHP version >=' . REX_MIN_PHP_VERSION . ' needed!'); } // start output buffering as early as possible, so we can be sure // we can set http header whenever we want/need to ob_start(); ob_implicit_flush(0); mb_internal_encoding('UTF-8'); require_once dirname(__FILE__) . '/lib/path.php'; rex_path::init($REX['HTDOCS_PATH'], $REX['BACKEND_FOLDER']); require_once rex_path::core('lib/autoload.php'); // register core-classes as php-handlers rex_autoload::register(); // add core base-classpath to autoloader rex_autoload::addDirectory(rex_path::core('lib')); rex_autoload::addDirectory(rex_path::core('vendor')); rex_url::init($REX['HTDOCS_PATH'], $REX['BACKEND_FOLDER']); // start timer at the very beginning rex::setProperty('timer', new rex_timer); // register rex_error_handler rex_error_handler::register(); // add backend flag to rex rex::setProperty('redaxo', $REX['REDAXO']); // reset $REX unset($REX); // add core lang directory to rex_i18n rex_i18n::addDirectory(rex_path::core('lang')); // add core base-fragmentpath to fragmentloader rex_fragment::addDirectory(rex_path::core('fragments/')); // ----------------- FUNCTIONS require_once rex_path::core('functions/function_rex_globals.inc.php'); require_once rex_path::core('functions/function_rex_mquotes.inc.php'); require_once rex_path::core('functions/function_rex_other.inc.php'); // ----------------- VERSION rex::setProperty('version', 5); rex::setProperty('subversion', 0); rex::setProperty('minorversion', 'alpha3'); $config = rex_file::getConfig(rex_path::data('config.yml')); foreach ($config as $key => $value) { if (in_array($key, array('fileperm', 'dirperm'))) { $value = octdec($value); } rex::setProperty($key, $value); } date_default_timezone_set(rex::getProperty('timezone', 'Europe/Berlin')); // ----------------- REX PERMS rex_perm::register('advancedMode[]', rex_i18n::msg('perm_options_advancedMode[]'), rex_perm::OPTIONS); rex_complex_perm::register('clang', 'rex_clang_perm'); // ----- SET CLANG if (!rex::isSetup()) { rex_clang::setCurrentId(rex_request('clang', 'int', rex::getProperty('start_clang_id'))); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 121, Position 2 = 134
Branch analysis from position: 121
2 jumps found. (Code = 78) Position 1 = 122, Position 2 = 134
Branch analysis from position: 122
2 jumps found. (Code = 43) Position 1 = 125, Position 2 = 129
Branch analysis from position: 125
1 jumps found. (Code = 42) Position 1 = 121
Branch analysis from position: 121
Branch analysis from position: 129
Branch analysis from position: 134
2 jumps found. (Code = 43) Position 1 = 159, Position 2 = 170
Branch analysis from position: 159
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 170
Branch analysis from position: 134
filename:       /in/h22mG
function name:  (null)
number of ops:  171
compiled vars:  !0 = $REX, !1 = $config, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'REX_MIN_PHP_VERSION'
          2        SEND_VAL                                                 '5.3.0'
          3        DO_ICALL                                                 
   10     4        INIT_FCALL                                               'version_compare'
          5        SEND_VAL                                                 '8.0.0'
          6        FETCH_CONSTANT                                   ~5      'REX_MIN_PHP_VERSION'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                         $6      
          9        IS_SMALLER                                               $6, 0
         10      > JMPZ                                                     ~7, ->15
   11    11    >   FETCH_CONSTANT                                   ~8      'REX_MIN_PHP_VERSION'
         12        CONCAT                                           ~9      'PHP+version+%3E%3D', ~8
         13        CONCAT                                           ~10     ~9, '+needed%21'
         14      > EXIT                                                     ~10
   16    15    >   INIT_FCALL                                               'ob_start'
         16        DO_ICALL                                                 
   17    17        INIT_FCALL                                               'ob_implicit_flush'
         18        SEND_VAL                                                 0
         19        DO_ICALL                                                 
   19    20        INIT_FCALL                                               'mb_internal_encoding'
         21        SEND_VAL                                                 'UTF-8'
         22        DO_ICALL                                                 
   21    23        INIT_FCALL                                               'dirname'
         24        SEND_VAL                                                 '%2Fin%2Fh22mG'
         25        DO_ICALL                                         $14     
         26        CONCAT                                           ~15     $14, '%2Flib%2Fpath.php'
         27        INCLUDE_OR_EVAL                                          ~15, REQUIRE_ONCE
   22    28        INIT_STATIC_METHOD_CALL                                  'rex_path', 'init'
         29        CHECK_FUNC_ARG                                           
         30        FETCH_DIM_FUNC_ARG                               $17     !0, 'HTDOCS_PATH'
         31        SEND_FUNC_ARG                                            $17
         32        CHECK_FUNC_ARG                                           
         33        FETCH_DIM_FUNC_ARG                               $18     !0, 'BACKEND_FOLDER'
         34        SEND_FUNC_ARG                                            $18
         35        DO_FCALL                                      0          
   24    36        INIT_STATIC_METHOD_CALL                                  'rex_path', 'core'
         37        SEND_VAL_EX                                              'lib%2Fautoload.php'
         38        DO_FCALL                                      0  $20     
         39        INCLUDE_OR_EVAL                                          $20, REQUIRE_ONCE
   27    40        INIT_STATIC_METHOD_CALL                                  'rex_autoload', 'register'
         41        DO_FCALL                                      0          
   29    42        INIT_STATIC_METHOD_CALL                                  'rex_autoload', 'addDirectory'
         43        INIT_STATIC_METHOD_CALL                                  'rex_path', 'core'
         44        SEND_VAL_EX                                              'lib'
         45        DO_FCALL                                      0  $23     
         46        SEND_VAR_NO_REF_EX                                       $23
         47        DO_FCALL                                      0          
   30    48        INIT_STATIC_METHOD_CALL                                  'rex_autoload', 'addDirectory'
         49        INIT_STATIC_METHOD_CALL                                  'rex_path', 'core'
         50        SEND_VAL_EX                                              'vendor'
         51        DO_FCALL                                      0  $25     
         52        SEND_VAR_NO_REF_EX                                       $25
         53        DO_FCALL                                      0          
   32    54        INIT_STATIC_METHOD_CALL                                  'rex_url', 'init'
         55        CHECK_FUNC_ARG                                           
         56        FETCH_DIM_FUNC_ARG                               $27     !0, 'HTDOCS_PATH'
         57        SEND_FUNC_ARG                                            $27
         58        CHECK_FUNC_ARG                                           
         59        FETCH_DIM_FUNC_ARG                               $28     !0, 'BACKEND_FOLDER'
         60        SEND_FUNC_ARG                                            $28
         61        DO_FCALL                                      0          
   35    62        INIT_STATIC_METHOD_CALL                                  'rex', 'setProperty'
         63        SEND_VAL_EX                                              'timer'
         64        NEW                                              $30     'rex_timer'
         65        DO_FCALL                                      0          
         66        SEND_VAR_NO_REF_EX                                       $30
         67        DO_FCALL                                      0          
   37    68        INIT_STATIC_METHOD_CALL                                  'rex_error_handler', 'register'
         69        DO_FCALL                                      0          
   39    70        INIT_STATIC_METHOD_CALL                                  'rex', 'setProperty'
         71        SEND_VAL_EX                                              'redaxo'
         72        CHECK_FUNC_ARG                                           
         73        FETCH_DIM_FUNC_ARG                               $34     !0, 'REDAXO'
         74        SEND_FUNC_ARG                                            $34
         75        DO_FCALL                                      0          
   41    76        UNSET_CV                                                 !0
   43    77        INIT_STATIC_METHOD_CALL                                  'rex_i18n', 'addDirectory'
         78        INIT_STATIC_METHOD_CALL                                  'rex_path', 'core'
         79        SEND_VAL_EX                                              'lang'
         80        DO_FCALL                                      0  $36     
         81        SEND_VAR_NO_REF_EX                                       $36
         82        DO_FCALL                                      0          
   45    83        INIT_STATIC_METHOD_CALL                                  'rex_fragment', 'addDirectory'
         84        INIT_STATIC_METHOD_CALL                                  'rex_path', 'core'
         85        SEND_VAL_EX                                              'fragments%2F'
         86        DO_FCALL                                      0  $38     
         87        SEND_VAR_NO_REF_EX                                       $38
         88        DO_FCALL                                      0          
   48    89        INIT_STATIC_METHOD_CALL                                  'rex_path', 'core'
         90        SEND_VAL_EX                                              'functions%2Ffunction_rex_globals.inc.php'
         91        DO_FCALL                                      0  $40     
         92        INCLUDE_OR_EVAL                                          $40, REQUIRE_ONCE
   49    93        INIT_STATIC_METHOD_CALL                                  'rex_path', 'core'
         94        SEND_VAL_EX                                              'functions%2Ffunction_rex_mquotes.inc.php'
         95        DO_FCALL                                      0  $42     
         96        INCLUDE_OR_EVAL                                          $42, REQUIRE_ONCE
   50    97        INIT_STATIC_METHOD_CALL                                  'rex_path', 'core'
         98        SEND_VAL_EX                                              'functions%2Ffunction_rex_other.inc.php'
         99        DO_FCALL                                      0  $44     
        100        INCLUDE_OR_EVAL                                          $44, REQUIRE_ONCE
   53   101        INIT_STATIC_METHOD_CALL                                  'rex', 'setProperty'
        102        SEND_VAL_EX                                              'version'
        103        SEND_VAL_EX                                              5
        104        DO_FCALL                                      0          
   54   105        INIT_STATIC_METHOD_CALL                                  'rex', 'setProperty'
        106        SEND_VAL_EX                                              'subversion'
        107        SEND_VAL_EX                                              0
        108        DO_FCALL                                      0          
   55   109        INIT_STATIC_METHOD_CALL                                  'rex', 'setProperty'
        110        SEND_VAL_EX                                              'minorversion'
        111        SEND_VAL_EX                                              'alpha3'
        112        DO_FCALL                                      0          
   57   113        INIT_STATIC_METHOD_CALL                                  'rex_file', 'getConfig'
        114        INIT_STATIC_METHOD_CALL                                  'rex_path', 'data'
        115        SEND_VAL_EX                                              'config.yml'
        116        DO_FCALL                                      0  $49     
        117        SEND_VAR_NO_REF_EX                                       $49
        118        DO_FCALL                                      0  $50     
        119        ASSIGN                                                   !1, $50
   58   120      > FE_RESET_R                                       $52     !1, ->134
        121    > > FE_FETCH_R                                       ~53     $52, !2, ->134
        122    >   ASSIGN                                                   !3, ~53
   59   123        IN_ARRAY                                                 !3, <array>
        124      > JMPZ                                                     ~55, ->129
   60   125    >   INIT_FCALL                                               'octdec'
        126        SEND_VAR                                                 !2
        127        DO_ICALL                                         $56     
        128        ASSIGN                                                   !2, $56
   62   129    >   INIT_STATIC_METHOD_CALL                                  'rex', 'setProperty'
        130        SEND_VAR_EX                                              !3
        131        SEND_VAR_EX                                              !2
        132        DO_FCALL                                      0          
   58   133      > JMP                                                      ->121
        134    >   FE_FREE                                                  $52
   65   135        INIT_FCALL                                               'date_default_timezone_set'
        136        INIT_STATIC_METHOD_CALL                                  'rex', 'getProperty'
        137        SEND_VAL_EX                                              'timezone'
        138        SEND_VAL_EX                                              'Europe%2FBerlin'
        139        DO_FCALL                                      0  $59     
        140        SEND_VAR                                                 $59
        141        DO_ICALL                                                 
   69   142        INIT_STATIC_METHOD_CALL                                  'rex_perm', 'register'
        143        SEND_VAL_EX                                              'advancedMode%5B%5D'
        144        INIT_STATIC_METHOD_CALL                                  'rex_i18n', 'msg'
        145        SEND_VAL_EX                                              'perm_options_advancedMode%5B%5D'
        146        DO_FCALL                                      0  $61     
        147        SEND_VAR_NO_REF_EX                                       $61
        148        FETCH_CLASS_CONSTANT                             ~62     'rex_perm', 'OPTIONS'
        149        SEND_VAL_EX                                              ~62
        150        DO_FCALL                                      0          
   71   151        INIT_STATIC_METHOD_CALL                                  'rex_complex_perm', 'register'
        152        SEND_VAL_EX                                              'clang'
        153        SEND_VAL_EX                                              'rex_clang_perm'
        154        DO_FCALL                                      0          
   74   155        INIT_STATIC_METHOD_CALL                                  'rex', 'isSetup'
        156        DO_FCALL                                      0  $65     
        157        BOOL_NOT                                         ~66     $65
        158      > JMPZ                                                     ~66, ->170
   75   159    >   INIT_STATIC_METHOD_CALL                                  'rex_clang', 'setCurrentId'
        160        INIT_FCALL_BY_NAME                                       'rex_request'
        161        SEND_VAL_EX                                              'clang'
        162        SEND_VAL_EX                                              'int'
        163        INIT_STATIC_METHOD_CALL                                  'rex', 'getProperty'
        164        SEND_VAL_EX                                              'start_clang_id'
        165        DO_FCALL                                      0  $67     
        166        SEND_VAR_NO_REF_EX                                       $67
        167        DO_FCALL                                      0  $68     
        168        SEND_VAR_NO_REF_EX                                       $68
        169        DO_FCALL                                      0          
   76   170    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.43 ms | 1400 KiB | 29 Q