3v4l.org

run code in 300+ PHP versions simultaneously
<?php // SpaceBoard - the board with support for spaces // Copyright (C) 2012 GlitchMr // This is sanity check. It detects lack of PHP support. Ignore it when // working on the code. // > PHP is not configured correctly. <!-- // Also, this file should expect at least PHP 4.0 in syntax, as it's used to // redirect into installer which notices it itself. if (!file_exists('storage/sql.php')) { header('Location: install'); exit; } require 'storage/sql.php'; require 'storage/config.php'; require 'lib/basics.php'; require 'lib/plugins.php'; // Please note that only change made at runtime of init is removing // magic_quotes_gpc side-effects, otherwise nearly nothing exists and // you're encouraged to use some moment after initialization. This // bucket is intended for things which should run at beginning and // functions which overwrite SpaceBoard functions. $bucket = 'init'; require 'lib/pluginload.php'; $lang = 'en'; $theme = 'spaceboard'; require 'lib/i18n.php'; require 'lib/sql.php'; require 'lib/functions.php'; require 'lib/twig.php'; $bucket = 'pagename'; require 'lib/pluginload.php'; if (!isset($page)) { $page = issetor($_GET['page'], 'main'); } if (preg_match('/[^\w]/', $page)) { $page = 'invalid_page'; } $bucket = "page_$page"; if (!require 'lib/pluginload.php') { if (!file_exists("pages/$page.php")) { $page = 'invalid_page'; } require "pages/$page.php"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 34
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 40
Branch analysis from position: 39
2 jumps found. (Code = 43) Position 1 = 46, Position 2 = 59
Branch analysis from position: 46
2 jumps found. (Code = 43) Position 1 = 54, Position 2 = 55
Branch analysis from position: 54
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 55
Branch analysis from position: 59
Branch analysis from position: 40
Branch analysis from position: 34
filename:       /in/LJVGF
function name:  (null)
number of ops:  60
compiled vars:  !0 = $bucket, !1 = $lang, !2 = $theme, !3 = $page
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'file_exists'
          1        SEND_VAL                                                 'storage%2Fsql.php'
          2        DO_ICALL                                         $4      
          3        BOOL_NOT                                         ~5      $4
          4      > JMPZ                                                     ~5, ->9
   13     5    >   INIT_FCALL                                               'header'
          6        SEND_VAL                                                 'Location%3A+install'
          7        DO_ICALL                                                 
   14     8      > EXIT                                                     
   16     9    >   INCLUDE_OR_EVAL                                          'storage%2Fsql.php', REQUIRE
   17    10        INCLUDE_OR_EVAL                                          'storage%2Fconfig.php', REQUIRE
   19    11        INCLUDE_OR_EVAL                                          'lib%2Fbasics.php', REQUIRE
   20    12        INCLUDE_OR_EVAL                                          'lib%2Fplugins.php', REQUIRE
   27    13        ASSIGN                                                   !0, 'init'
   28    14        INCLUDE_OR_EVAL                                          'lib%2Fpluginload.php', REQUIRE
   30    15        ASSIGN                                                   !1, 'en'
   31    16        ASSIGN                                                   !2, 'spaceboard'
   32    17        INCLUDE_OR_EVAL                                          'lib%2Fi18n.php', REQUIRE
   33    18        INCLUDE_OR_EVAL                                          'lib%2Fsql.php', REQUIRE
   35    19        INCLUDE_OR_EVAL                                          'lib%2Ffunctions.php', REQUIRE
   36    20        INCLUDE_OR_EVAL                                          'lib%2Ftwig.php', REQUIRE
   38    21        ASSIGN                                                   !0, 'pagename'
   39    22        INCLUDE_OR_EVAL                                          'lib%2Fpluginload.php', REQUIRE
   41    23        ISSET_ISEMPTY_CV                                 ~21     !3
         24        BOOL_NOT                                         ~22     ~21
         25      > JMPZ                                                     ~22, ->34
   42    26    >   INIT_FCALL_BY_NAME                                       'issetor'
         27        CHECK_FUNC_ARG                                           
         28        FETCH_FUNC_ARG               global              $23     '_GET'
         29        FETCH_DIM_FUNC_ARG                               $24     $23, 'page'
         30        SEND_FUNC_ARG                                            $24
         31        SEND_VAL_EX                                              'main'
         32        DO_FCALL                                      0  $25     
         33        ASSIGN                                                   !3, $25
   45    34    >   INIT_FCALL                                               'preg_match'
         35        SEND_VAL                                                 '%2F%5B%5E%5Cw%5D%2F'
         36        SEND_VAR                                                 !3
         37        DO_ICALL                                         $27     
         38      > JMPZ                                                     $27, ->40
   46    39    >   ASSIGN                                                   !3, 'invalid_page'
   49    40    >   NOP                                                      
         41        FAST_CONCAT                                      ~29     'page_', !3
         42        ASSIGN                                                   !0, ~29
   50    43        INCLUDE_OR_EVAL                                  $31     'lib%2Fpluginload.php', REQUIRE
         44        BOOL_NOT                                         ~32     $31
         45      > JMPZ                                                     ~32, ->59
   51    46    >   INIT_FCALL                                               'file_exists'
         47        ROPE_INIT                                     3  ~34     'pages%2F'
         48        ROPE_ADD                                      1  ~34     ~34, !3
         49        ROPE_END                                      2  ~33     ~34, '.php'
         50        SEND_VAL                                                 ~33
         51        DO_ICALL                                         $36     
         52        BOOL_NOT                                         ~37     $36
         53      > JMPZ                                                     ~37, ->55
   52    54    >   ASSIGN                                                   !3, 'invalid_page'
   54    55    >   ROPE_INIT                                     3  ~40     'pages%2F'
         56        ROPE_ADD                                      1  ~40     ~40, !3
         57        ROPE_END                                      2  ~39     ~40, '.php'
         58        INCLUDE_OR_EVAL                                          ~39, REQUIRE
   55    59    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.05 ms | 1400 KiB | 19 Q