3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Piwik - Open source web analytics * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * * @package Piwik */ if(!defined('PIWIK_DOCUMENT_ROOT')) { define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__) == '/' ? '' : dirname(__FILE__)); } if (file_exists(PIWIK_DOCUMENT_ROOT . '/bootstrap.php')) { require_once PIWIK_DOCUMENT_ROOT . '/bootstrap.php'; } error_reporting(E_ALL | E_NOTICE); @ini_set('display_errors', defined('PIWIK_DISPLAY_ERRORS') ? PIWIK_DISPLAY_ERRORS : @ini_get('display_errors')); @ini_set('xdebug.show_exception_trace', 0); @ini_set('magic_quotes_runtime', 0); if (!defined('PIWIK_USER_PATH')) { define('PIWIK_USER_PATH', PIWIK_DOCUMENT_ROOT); } if (!defined('PIWIK_INCLUDE_PATH')) { define('PIWIK_INCLUDE_PATH', PIWIK_DOCUMENT_ROOT); } require_once PIWIK_INCLUDE_PATH . '/libs/upgradephp/upgrade.php'; require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php'; // NOTE: the code above this comment must be PHP4 compatible use Piwik\Error; use Piwik\ExceptionHandler; use Piwik\FrontController; session_cache_limiter('nocache'); @date_default_timezone_set('UTC'); require_once file_exists(PIWIK_INCLUDE_PATH . '/vendor/autoload.php') ? PIWIK_INCLUDE_PATH . '/vendor/autoload.php' // Piwik is the main project : PIWIK_INCLUDE_PATH . '/../../autoload.php'; // Piwik is installed as a dependency require_once PIWIK_INCLUDE_PATH . '/core/Loader.php'; if(!defined('PIWIK_PRINT_ERROR_BACKTRACE')) { define('PIWIK_PRINT_ERROR_BACKTRACE', false); } if (!defined('PIWIK_ENABLE_ERROR_HANDLER') || PIWIK_ENABLE_ERROR_HANDLER) { require_once PIWIK_INCLUDE_PATH . '/core/Error.php'; Error::setErrorHandler(); require_once PIWIK_INCLUDE_PATH . '/core/ExceptionHandler.php'; ExceptionHandler::setUp(); } FrontController::setUpSafeMode(); if (!defined('PIWIK_ENABLE_DISPATCH') || PIWIK_ENABLE_DISPATCH) { $controller = FrontController::getInstance(); $controller->init(); $response = $controller->dispatch(); if (!is_null($response)) { echo $response; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 38
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 62, Position 2 = 67
Branch analysis from position: 62
2 jumps found. (Code = 43) Position 1 = 70, Position 2 = 75
Branch analysis from position: 70
2 jumps found. (Code = 43) Position 1 = 95, Position 2 = 99
Branch analysis from position: 95
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
2 jumps found. (Code = 43) Position 1 = 109, Position 2 = 113
Branch analysis from position: 109
2 jumps found. (Code = 47) Position 1 = 116, Position 2 = 118
Branch analysis from position: 116
2 jumps found. (Code = 43) Position 1 = 119, Position 2 = 129
Branch analysis from position: 119
2 jumps found. (Code = 47) Position 1 = 134, Position 2 = 136
Branch analysis from position: 134
2 jumps found. (Code = 43) Position 1 = 137, Position 2 = 149
Branch analysis from position: 137
2 jumps found. (Code = 43) Position 1 = 148, Position 2 = 149
Branch analysis from position: 148
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 149
Branch analysis from position: 149
Branch analysis from position: 136
Branch analysis from position: 129
Branch analysis from position: 118
Branch analysis from position: 113
Branch analysis from position: 99
2 jumps found. (Code = 43) Position 1 = 109, Position 2 = 113
Branch analysis from position: 109
Branch analysis from position: 113
Branch analysis from position: 75
Branch analysis from position: 67
Branch analysis from position: 38
2 jumps found. (Code = 43) Position 1 = 62, Position 2 = 67
Branch analysis from position: 62
Branch analysis from position: 67
Branch analysis from position: 27
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
Branch analysis from position: 27
Branch analysis from position: 18
filename:       /in/KQRLv
function name:  (null)
number of ops:  150
compiled vars:  !0 = $controller, !1 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DEFINED                                          ~2      'PIWIK_DOCUMENT_ROOT'
          1        BOOL_NOT                                         ~3      ~2
          2      > JMPZ                                                     ~3, ->18
   12     3    >   INIT_FCALL                                               'define'
          4        SEND_VAL                                                 'PIWIK_DOCUMENT_ROOT'
          5        INIT_FCALL                                               'dirname'
          6        SEND_VAL                                                 '%2Fin%2FKQRLv'
          7        DO_ICALL                                         $4      
          8        IS_EQUAL                                                 $4, '%2F'
          9      > JMPZ                                                     ~5, ->12
         10    >   QM_ASSIGN                                        ~6      ''
         11      > JMP                                                      ->16
         12    >   INIT_FCALL                                               'dirname'
         13        SEND_VAL                                                 '%2Fin%2FKQRLv'
         14        DO_ICALL                                         $7      
         15        QM_ASSIGN                                        ~6      $7
         16    >   SEND_VAL                                                 ~6
         17        DO_ICALL                                                 
   14    18    >   INIT_FCALL                                               'file_exists'
         19        FETCH_CONSTANT                                   ~9      'PIWIK_DOCUMENT_ROOT'
         20        CONCAT                                           ~10     ~9, '%2Fbootstrap.php'
         21        SEND_VAL                                                 ~10
         22        DO_ICALL                                         $11     
         23      > JMPZ                                                     $11, ->27
   15    24    >   FETCH_CONSTANT                                   ~12     'PIWIK_DOCUMENT_ROOT'
         25        CONCAT                                           ~13     ~12, '%2Fbootstrap.php'
         26        INCLUDE_OR_EVAL                                          ~13, REQUIRE_ONCE
   18    27    >   INIT_FCALL                                               'error_reporting'
         28        SEND_VAL                                                 32767
         29        DO_ICALL                                                 
   19    30        BEGIN_SILENCE                                    ~16     
         31        INIT_FCALL                                               'ini_set'
         32        SEND_VAL                                                 'display_errors'
         33        DEFINED                                                  'PIWIK_DISPLAY_ERRORS'
         34      > JMPZ                                                     ~17, ->38
         35    >   FETCH_CONSTANT                                   ~18     'PIWIK_DISPLAY_ERRORS'
         36        QM_ASSIGN                                        ~19     ~18
         37      > JMP                                                      ->44
         38    >   BEGIN_SILENCE                                    ~20     
         39        INIT_FCALL                                               'ini_get'
         40        SEND_VAL                                                 'display_errors'
         41        DO_ICALL                                         $21     
         42        END_SILENCE                                              ~20
         43        QM_ASSIGN                                        ~19     $21
         44    >   SEND_VAL                                                 ~19
         45        DO_ICALL                                                 
         46        END_SILENCE                                              ~16
   20    47        BEGIN_SILENCE                                    ~23     
         48        INIT_FCALL                                               'ini_set'
         49        SEND_VAL                                                 'xdebug.show_exception_trace'
         50        SEND_VAL                                                 0
         51        DO_ICALL                                                 
         52        END_SILENCE                                              ~23
   21    53        BEGIN_SILENCE                                    ~25     
         54        INIT_FCALL                                               'ini_set'
         55        SEND_VAL                                                 'magic_quotes_runtime'
         56        SEND_VAL                                                 0
         57        DO_ICALL                                                 
         58        END_SILENCE                                              ~25
   23    59        DEFINED                                          ~27     'PIWIK_USER_PATH'
         60        BOOL_NOT                                         ~28     ~27
         61      > JMPZ                                                     ~28, ->67
   24    62    >   INIT_FCALL                                               'define'
         63        SEND_VAL                                                 'PIWIK_USER_PATH'
         64        FETCH_CONSTANT                                   ~29     'PIWIK_DOCUMENT_ROOT'
         65        SEND_VAL                                                 ~29
         66        DO_ICALL                                                 
   26    67    >   DEFINED                                          ~31     'PIWIK_INCLUDE_PATH'
         68        BOOL_NOT                                         ~32     ~31
         69      > JMPZ                                                     ~32, ->75
   27    70    >   INIT_FCALL                                               'define'
         71        SEND_VAL                                                 'PIWIK_INCLUDE_PATH'
         72        FETCH_CONSTANT                                   ~33     'PIWIK_DOCUMENT_ROOT'
         73        SEND_VAL                                                 ~33
         74        DO_ICALL                                                 
   30    75    >   FETCH_CONSTANT                                   ~35     'PIWIK_INCLUDE_PATH'
         76        CONCAT                                           ~36     ~35, '%2Flibs%2Fupgradephp%2Fupgrade.php'
         77        INCLUDE_OR_EVAL                                          ~36, REQUIRE_ONCE
   31    78        FETCH_CONSTANT                                   ~38     'PIWIK_INCLUDE_PATH'
         79        CONCAT                                           ~39     ~38, '%2Fcore%2FtestMinimumPhpVersion.php'
         80        INCLUDE_OR_EVAL                                          ~39, REQUIRE_ONCE
   39    81        INIT_FCALL                                               'session_cache_limiter'
         82        SEND_VAL                                                 'nocache'
         83        DO_ICALL                                                 
   40    84        BEGIN_SILENCE                                    ~42     
         85        INIT_FCALL                                               'date_default_timezone_set'
         86        SEND_VAL                                                 'UTC'
         87        DO_ICALL                                                 
         88        END_SILENCE                                              ~42
   41    89        INIT_FCALL                                               'file_exists'
         90        FETCH_CONSTANT                                   ~44     'PIWIK_INCLUDE_PATH'
         91        CONCAT                                           ~45     ~44, '%2Fvendor%2Fautoload.php'
         92        SEND_VAL                                                 ~45
         93        DO_ICALL                                         $46     
         94      > JMPZ                                                     $46, ->99
   42    95    >   FETCH_CONSTANT                                   ~47     'PIWIK_INCLUDE_PATH'
         96        CONCAT                                           ~48     ~47, '%2Fvendor%2Fautoload.php'
         97        QM_ASSIGN                                        ~49     ~48
         98      > JMP                                                      ->102
   43    99    >   FETCH_CONSTANT                                   ~50     'PIWIK_INCLUDE_PATH'
        100        CONCAT                                           ~51     ~50, '%2F..%2F..%2Fautoload.php'
        101        QM_ASSIGN                                        ~49     ~51
        102    >   INCLUDE_OR_EVAL                                          ~49, REQUIRE_ONCE
   44   103        FETCH_CONSTANT                                   ~53     'PIWIK_INCLUDE_PATH'
        104        CONCAT                                           ~54     ~53, '%2Fcore%2FLoader.php'
        105        INCLUDE_OR_EVAL                                          ~54, REQUIRE_ONCE
   46   106        DEFINED                                          ~56     'PIWIK_PRINT_ERROR_BACKTRACE'
        107        BOOL_NOT                                         ~57     ~56
        108      > JMPZ                                                     ~57, ->113
   47   109    >   INIT_FCALL                                               'define'
        110        SEND_VAL                                                 'PIWIK_PRINT_ERROR_BACKTRACE'
        111        SEND_VAL                                                 <false>
        112        DO_ICALL                                                 
   50   113    >   DEFINED                                          ~59     'PIWIK_ENABLE_ERROR_HANDLER'
        114        BOOL_NOT                                         ~60     ~59
        115      > JMPNZ_EX                                         ~60     ~60, ->118
        116    >   FETCH_CONSTANT                                   ~61     'PIWIK_ENABLE_ERROR_HANDLER'
        117        BOOL                                             ~60     ~61
        118    > > JMPZ                                                     ~60, ->129
   51   119    >   FETCH_CONSTANT                                   ~62     'PIWIK_INCLUDE_PATH'
        120        CONCAT                                           ~63     ~62, '%2Fcore%2FError.php'
        121        INCLUDE_OR_EVAL                                          ~63, REQUIRE_ONCE
   52   122        INIT_STATIC_METHOD_CALL                                  'Piwik%5CError', 'setErrorHandler'
        123        DO_FCALL                                      0          
   53   124        FETCH_CONSTANT                                   ~66     'PIWIK_INCLUDE_PATH'
        125        CONCAT                                           ~67     ~66, '%2Fcore%2FExceptionHandler.php'
        126        INCLUDE_OR_EVAL                                          ~67, REQUIRE_ONCE
   54   127        INIT_STATIC_METHOD_CALL                                  'Piwik%5CExceptionHandler', 'setUp'
        128        DO_FCALL                                      0          
   57   129    >   INIT_STATIC_METHOD_CALL                                  'Piwik%5CFrontController', 'setUpSafeMode'
        130        DO_FCALL                                      0          
   59   131        DEFINED                                          ~71     'PIWIK_ENABLE_DISPATCH'
        132        BOOL_NOT                                         ~72     ~71
        133      > JMPNZ_EX                                         ~72     ~72, ->136
        134    >   FETCH_CONSTANT                                   ~73     'PIWIK_ENABLE_DISPATCH'
        135        BOOL                                             ~72     ~73
        136    > > JMPZ                                                     ~72, ->149
   60   137    >   INIT_STATIC_METHOD_CALL                                  'Piwik%5CFrontController', 'getInstance'
        138        DO_FCALL                                      0  $74     
        139        ASSIGN                                                   !0, $74
   61   140        INIT_METHOD_CALL                                         !0, 'init'
        141        DO_FCALL                                      0          
   62   142        INIT_METHOD_CALL                                         !0, 'dispatch'
        143        DO_FCALL                                      0  $77     
        144        ASSIGN                                                   !1, $77
   64   145        TYPE_CHECK                                    2  ~79     !1
        146        BOOL_NOT                                         ~80     ~79
        147      > JMPZ                                                     ~80, ->149
   65   148    >   ECHO                                                     !1
   67   149    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.86 ms | 1408 KiB | 29 Q