3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_extensions(".php"); spl_autoload_register(); require_once 'config.php'; $driver = Handy\Core\Config\ConfigHelper::get('CACHE_DRIVER'); $cache = new Handy\Core\Cache\CacheDriver(Handy\Core\Config\ConfigHelper::get('CACHE_DRIVER')); Handy\Core\ObjectStorage\Storage::saveObject('cache', $cache); if (Handy\Core\Config\ConfigHelper::get('ACTIVE_RECORD_STATUS') == true) { require_once 'ActiveRecord/ActiveRecord.php'; ActiveRecord\Config::initialize(function ($config) { $config->set_model_directory('Handy/Modules/Model/'); $config->set_connections(array('development' => Handy\Core\Config\ConfigHelper::get('ACTIVE_RECORD_DRIVER_DEVELOPMENT'), 'production' => Handy\Core\Config\ConfigHelper::get('ACTIVE_RECORD_DRIVER_PRODUCTION'))); $config->set_default_connection(Handy\Core\Config\ConfigHelper::get('DEVELOPMENT_ENV')); }); } if(Handy\Core\Config\ConfigHelper::get('TWIG_STATUS') == true) { require_once 'Twig/Autoloader.php'; Twig_Autoloader::register(); $loader = new Twig_Loader_Filesystem('Handy/Modules/View'); $twig = new Twig_Environment($loader, array( 'cache' => Handy\Core\Config\ConfigHelper::get('DIRECTORY_CACHE').'/template/', 'debug' => ((Handy\Core\Config\ConfigHelper::get('DEVELOPMENT_ENV') == 'development') ? true : false) ) ); Handy\Core\ObjectStorage\Storage::saveObject('twig', $twig); } require_once 'routes.php';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 31
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 66
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 57
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 58
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 57
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 66
Branch analysis from position: 31
filename:       /in/HHCkh
function name:  (null)
number of ops:  68
compiled vars:  !0 = $driver, !1 = $cache, !2 = $loader, !3 = $twig
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'spl_autoload_extensions'
          1        SEND_VAL                                                 '.php'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'spl_autoload_register'
          4        DO_ICALL                                                 
    4     5        INCLUDE_OR_EVAL                                          'config.php', REQUIRE_ONCE
    5     6        INIT_STATIC_METHOD_CALL                                  'Handy%5CCore%5CConfig%5CConfigHelper', 'get'
          7        SEND_VAL_EX                                              'CACHE_DRIVER'
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !0, $7
    6    10        NEW                                              $9      'Handy%5CCore%5CCache%5CCacheDriver'
         11        INIT_STATIC_METHOD_CALL                                  'Handy%5CCore%5CConfig%5CConfigHelper', 'get'
         12        SEND_VAL_EX                                              'CACHE_DRIVER'
         13        DO_FCALL                                      0  $10     
         14        SEND_VAR_NO_REF_EX                                       $10
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !1, $9
    7    17        INIT_STATIC_METHOD_CALL                                  'Handy%5CCore%5CObjectStorage%5CStorage', 'saveObject'
         18        SEND_VAL_EX                                              'cache'
         19        SEND_VAR_EX                                              !1
         20        DO_FCALL                                      0          
    8    21        INIT_STATIC_METHOD_CALL                                  'Handy%5CCore%5CConfig%5CConfigHelper', 'get'
         22        SEND_VAL_EX                                              'ACTIVE_RECORD_STATUS'
         23        DO_FCALL                                      0  $14     
         24        BOOL                                             ~15     $14
         25      > JMPZ                                                     ~15, ->31
    9    26    >   INCLUDE_OR_EVAL                                          'ActiveRecord%2FActiveRecord.php', REQUIRE_ONCE
   10    27        INIT_STATIC_METHOD_CALL                                  'ActiveRecord%5CConfig', 'initialize'
         28        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FHHCkh%3A10%240'
   14    29        SEND_VAL_EX                                              ~17
         30        DO_FCALL                                      0          
   16    31    >   INIT_STATIC_METHOD_CALL                                  'Handy%5CCore%5CConfig%5CConfigHelper', 'get'
         32        SEND_VAL_EX                                              'TWIG_STATUS'
         33        DO_FCALL                                      0  $19     
         34        BOOL                                             ~20     $19
         35      > JMPZ                                                     ~20, ->66
   17    36    >   INCLUDE_OR_EVAL                                          'Twig%2FAutoloader.php', REQUIRE_ONCE
   18    37        INIT_STATIC_METHOD_CALL                                  'Twig_Autoloader', 'register'
         38        DO_FCALL                                      0          
   19    39        NEW                                              $23     'Twig_Loader_Filesystem'
         40        SEND_VAL_EX                                              'Handy%2FModules%2FView'
         41        DO_FCALL                                      0          
         42        ASSIGN                                                   !2, $23
   20    43        NEW                                              $26     'Twig_Environment'
         44        SEND_VAR_EX                                              !2
   21    45        INIT_STATIC_METHOD_CALL                                  'Handy%5CCore%5CConfig%5CConfigHelper', 'get'
         46        SEND_VAL_EX                                              'DIRECTORY_CACHE'
         47        DO_FCALL                                      0  $27     
         48        CONCAT                                           ~28     $27, '%2Ftemplate%2F'
         49        INIT_ARRAY                                       ~29     ~28, 'cache'
   22    50        INIT_STATIC_METHOD_CALL                                  'Handy%5CCore%5CConfig%5CConfigHelper', 'get'
         51        SEND_VAL_EX                                              'DEVELOPMENT_ENV'
         52        DO_FCALL                                      0  $30     
         53        IS_EQUAL                                                 $30, 'development'
         54      > JMPZ                                                     ~31, ->57
   21    55    >   QM_ASSIGN                                        ~32     <true>
         56      > JMP                                                      ->58
         57    >   QM_ASSIGN                                        ~32     <false>
         58    >   ADD_ARRAY_ELEMENT                                ~29     ~32, 'debug'
         59        SEND_VAL_EX                                              ~29
         60        DO_FCALL                                      0          
   20    61        ASSIGN                                                   !3, $26
   25    62        INIT_STATIC_METHOD_CALL                                  'Handy%5CCore%5CObjectStorage%5CStorage', 'saveObject'
         63        SEND_VAL_EX                                              'twig'
         64        SEND_VAR_EX                                              !3
         65        DO_FCALL                                      0          
   27    66    >   INCLUDE_OR_EVAL                                          'routes.php', REQUIRE_ONCE
         67      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FHHCkh%3A10%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HHCkh
function name:  {closure}
number of ops:  22
compiled vars:  !0 = $config
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        INIT_METHOD_CALL                                         !0, 'set_model_directory'
          2        SEND_VAL_EX                                              'Handy%2FModules%2FModel%2F'
          3        DO_FCALL                                      0          
   12     4        INIT_METHOD_CALL                                         !0, 'set_connections'
          5        INIT_STATIC_METHOD_CALL                                  'Handy%5CCore%5CConfig%5CConfigHelper', 'get'
          6        SEND_VAL_EX                                              'ACTIVE_RECORD_DRIVER_DEVELOPMENT'
          7        DO_FCALL                                      0  $2      
          8        INIT_ARRAY                                       ~3      $2, 'development'
          9        INIT_STATIC_METHOD_CALL                                  'Handy%5CCore%5CConfig%5CConfigHelper', 'get'
         10        SEND_VAL_EX                                              'ACTIVE_RECORD_DRIVER_PRODUCTION'
         11        DO_FCALL                                      0  $4      
         12        ADD_ARRAY_ELEMENT                                ~3      $4, 'production'
         13        SEND_VAL_EX                                              ~3
         14        DO_FCALL                                      0          
   13    15        INIT_METHOD_CALL                                         !0, 'set_default_connection'
         16        INIT_STATIC_METHOD_CALL                                  'Handy%5CCore%5CConfig%5CConfigHelper', 'get'
         17        SEND_VAL_EX                                              'DEVELOPMENT_ENV'
         18        DO_FCALL                                      0  $6      
         19        SEND_VAR_NO_REF_EX                                       $6
         20        DO_FCALL                                      0          
   14    21      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FHHCkh%3A10%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.65 ms | 1404 KiB | 17 Q