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); } echo "end"; // 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 = 90, Position 2 = 94
Branch analysis from position: 90
1 jumps found. (Code = 42) Position 1 = 97
Branch analysis from position: 97
2 jumps found. (Code = 43) Position 1 = 104, Position 2 = 108
Branch analysis from position: 104
2 jumps found. (Code = 47) Position 1 = 111, Position 2 = 113
Branch analysis from position: 111
2 jumps found. (Code = 43) Position 1 = 114, Position 2 = 124
Branch analysis from position: 114
2 jumps found. (Code = 47) Position 1 = 129, Position 2 = 131
Branch analysis from position: 129
2 jumps found. (Code = 43) Position 1 = 132, Position 2 = 144
Branch analysis from position: 132
2 jumps found. (Code = 43) Position 1 = 143, Position 2 = 144
Branch analysis from position: 143
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 144
Branch analysis from position: 144
Branch analysis from position: 131
Branch analysis from position: 124
Branch analysis from position: 113
Branch analysis from position: 108
Branch analysis from position: 94
2 jumps found. (Code = 43) Position 1 = 104, Position 2 = 108
Branch analysis from position: 104
Branch analysis from position: 108
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/3Wpbm
function name:  (null)
number of ops:  145
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%2F3Wpbm'
          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%2F3Wpbm'
         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                                                 
   29    75    >   ECHO                                                     'end'
   37    76        INIT_FCALL                                               'session_cache_limiter'
         77        SEND_VAL                                                 'nocache'
         78        DO_ICALL                                                 
   38    79        BEGIN_SILENCE                                    ~36     
         80        INIT_FCALL                                               'date_default_timezone_set'
         81        SEND_VAL                                                 'UTC'
         82        DO_ICALL                                                 
         83        END_SILENCE                                              ~36
   39    84        INIT_FCALL                                               'file_exists'
         85        FETCH_CONSTANT                                   ~38     'PIWIK_INCLUDE_PATH'
         86        CONCAT                                           ~39     ~38, '%2Fvendor%2Fautoload.php'
         87        SEND_VAL                                                 ~39
         88        DO_ICALL                                         $40     
         89      > JMPZ                                                     $40, ->94
   40    90    >   FETCH_CONSTANT                                   ~41     'PIWIK_INCLUDE_PATH'
         91        CONCAT                                           ~42     ~41, '%2Fvendor%2Fautoload.php'
         92        QM_ASSIGN                                        ~43     ~42
         93      > JMP                                                      ->97
   41    94    >   FETCH_CONSTANT                                   ~44     'PIWIK_INCLUDE_PATH'
         95        CONCAT                                           ~45     ~44, '%2F..%2F..%2Fautoload.php'
         96        QM_ASSIGN                                        ~43     ~45
         97    >   INCLUDE_OR_EVAL                                          ~43, REQUIRE_ONCE
   42    98        FETCH_CONSTANT                                   ~47     'PIWIK_INCLUDE_PATH'
         99        CONCAT                                           ~48     ~47, '%2Fcore%2FLoader.php'
        100        INCLUDE_OR_EVAL                                          ~48, REQUIRE_ONCE
   44   101        DEFINED                                          ~50     'PIWIK_PRINT_ERROR_BACKTRACE'
        102        BOOL_NOT                                         ~51     ~50
        103      > JMPZ                                                     ~51, ->108
   45   104    >   INIT_FCALL                                               'define'
        105        SEND_VAL                                                 'PIWIK_PRINT_ERROR_BACKTRACE'
        106        SEND_VAL                                                 <false>
        107        DO_ICALL                                                 
   48   108    >   DEFINED                                          ~53     'PIWIK_ENABLE_ERROR_HANDLER'
        109        BOOL_NOT                                         ~54     ~53
        110      > JMPNZ_EX                                         ~54     ~54, ->113
        111    >   FETCH_CONSTANT                                   ~55     'PIWIK_ENABLE_ERROR_HANDLER'
        112        BOOL                                             ~54     ~55
        113    > > JMPZ                                                     ~54, ->124
   49   114    >   FETCH_CONSTANT                                   ~56     'PIWIK_INCLUDE_PATH'
        115        CONCAT                                           ~57     ~56, '%2Fcore%2FError.php'
        116        INCLUDE_OR_EVAL                                          ~57, REQUIRE_ONCE
   50   117        INIT_STATIC_METHOD_CALL                                  'Piwik%5CError', 'setErrorHandler'
        118        DO_FCALL                                      0          
   51   119        FETCH_CONSTANT                                   ~60     'PIWIK_INCLUDE_PATH'
        120        CONCAT                                           ~61     ~60, '%2Fcore%2FExceptionHandler.php'
        121        INCLUDE_OR_EVAL                                          ~61, REQUIRE_ONCE
   52   122        INIT_STATIC_METHOD_CALL                                  'Piwik%5CExceptionHandler', 'setUp'
        123        DO_FCALL                                      0          
   55   124    >   INIT_STATIC_METHOD_CALL                                  'Piwik%5CFrontController', 'setUpSafeMode'
        125        DO_FCALL                                      0          
   57   126        DEFINED                                          ~65     'PIWIK_ENABLE_DISPATCH'
        127        BOOL_NOT                                         ~66     ~65
        128      > JMPNZ_EX                                         ~66     ~66, ->131
        129    >   FETCH_CONSTANT                                   ~67     'PIWIK_ENABLE_DISPATCH'
        130        BOOL                                             ~66     ~67
        131    > > JMPZ                                                     ~66, ->144
   58   132    >   INIT_STATIC_METHOD_CALL                                  'Piwik%5CFrontController', 'getInstance'
        133        DO_FCALL                                      0  $68     
        134        ASSIGN                                                   !0, $68
   59   135        INIT_METHOD_CALL                                         !0, 'init'
        136        DO_FCALL                                      0          
   60   137        INIT_METHOD_CALL                                         !0, 'dispatch'
        138        DO_FCALL                                      0  $71     
        139        ASSIGN                                                   !1, $71
   62   140        TYPE_CHECK                                    2  ~73     !1
        141        BOOL_NOT                                         ~74     ~73
        142      > JMPZ                                                     ~74, ->144
   63   143    >   ECHO                                                     !1
   65   144    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.77 ms | 1408 KiB | 29 Q