3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { if (!function_exists('handleException')) { /** * @param \Exception $e * @return string readable message */ function logException(\Exception $e) { $type = get_class($e); $msg = $e->getMessage(); $trace = $e->getTraceAsString(); global $logger; if (isset($logger)) { $logger->error(sprintf("%s: %s\n%s", $type, $msg, $trace)); if (method_exists($logger, 'newrelicLog')) { $logger->newrelicLog($e); } } return sprintf("<h1>%s</h1><pre>%s<br/><h2>Debug Trace:</h2>%s</pre>", $type, $msg, $trace); } function handleException(\Exception $e) { $message = logException($e); if (!headers_sent()) { header('HTTP/1.1 500 Internal Server Error'); } trigger_error('boo'); exit(); } } if (!isset($shutdownFunction)) { $shutdownFunction = function () { try { $error = error_get_last(); if (isset($error)) { throw new \Exception( $error['message'] . ' in ' . $error['file'] . ' at line ' . $error['line'], $error['type'] ); } } catch (Exception $e) { handleException($e); } }; register_shutdown_function($shutdownFunction); } if (isset($logger) && !isset($errorHandler)) { $errorHandler = function ($errno, $errstr, $errfile = null, $errline = null, $errcontext = []) use ($logger) { // prevent exception to be thrown when error_reporting is turned off or suppressed with @ if (error_reporting() !== 0) { throw new \Exception("$errstr in $errfile at line $errline", $errno); } else { $logger->error("$errstr in $errfile at line $errline"); } }; set_error_handler($errorHandler); } if (!function_exists('handleException')) { /** * @param \Exception $e * @return string readable message */ function logException(\Exception $e) { $type = get_class($e); $msg = $e->getMessage(); $trace = $e->getTraceAsString(); global $logger; if (isset($logger)) { $logger->error(sprintf("%s: %s\n%s", $type, $msg, $trace)); if (method_exists($logger, 'newrelicLog')) { $logger->newrelicLog($e); } } return sprintf("<h1>%s</h1><pre>%s<br/><h2>Debug Trace:</h2>%s</pre>", $type, $msg, $trace); } function handleException(\Exception $e) { $message = logException($e); if (!headers_sent()) { header('HTTP/1.1 500 Internal Server Error'); } include dirname(__FILE__) . '../modules/frontend/views/error/exception.phtml'; exit(); } } if (!isset($shutdownFunction)) { $shutdownFunction = function () { try { $error = error_get_last(); if (isset($error)) { throw new \Exception( $error['message'] . ' in ' . $error['file'] . ' at line ' . $error['line'], $error['type'] ); } } catch (Exception $e) { handleException($e); } }; register_shutdown_function($shutdownFunction); } if (isset($logger) && !isset($errorHandler)) { $errorHandler = function ($errno, $errstr, $errfile = null, $errline = null, $errcontext = []) use ($logger) { // prevent exception to be thrown when error_reporting is turned off or suppressed with @ if (error_reporting() !== 0) { throw new \Exception("$errstr in $errfile at line $errline", $errno); } else { $logger->error("$errstr in $errfile at line $errline"); } }; set_error_handler($errorHandler); } throw new \Exception('after both'); } catch (\Exception $e) { handleException($e); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 27
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 42
Branch analysis from position: 37
2 jumps found. (Code = 46) Position 1 = 44, Position 2 = 47
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 48, Position 2 = 54
Branch analysis from position: 48
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 54
Branch analysis from position: 47
Branch analysis from position: 42
Branch analysis from position: 34
Branch analysis from position: 27
Branch analysis from position: 20
Branch analysis from position: 15
Branch analysis from position: 7
Found catch point at position: 59
Branch analysis from position: 59
2 jumps found. (Code = 107) Position 1 = 60, Position 2 = -2
Branch analysis from position: 60
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uL4Uc
function name:  (null)
number of ops:  64
compiled vars:  !0 = $shutdownFunction, !1 = $logger, !2 = $errorHandler, !3 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'handleException'
          2        DO_ICALL                                         $4      
          3        BOOL_NOT                                         ~5      $4
          4      > JMPZ                                                     ~5, ->7
    8     5    >   DECLARE_FUNCTION                                         'logexception'
   25     6        DECLARE_FUNCTION                                         'handleexception'
   37     7    >   ISSET_ISEMPTY_CV                                 ~6      !0
          8        BOOL_NOT                                         ~7      ~6
          9      > JMPZ                                                     ~7, ->15
   38    10    >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FuL4Uc%3A38%242'
         11        ASSIGN                                                   !0, ~8
   51    12        INIT_FCALL                                               'register_shutdown_function'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   54    15    >   ISSET_ISEMPTY_CV                                 ~11     !1
         16      > JMPZ_EX                                          ~11     ~11, ->20
         17    >   ISSET_ISEMPTY_CV                                 ~12     !2
         18        BOOL_NOT                                         ~13     ~12
         19        BOOL                                             ~11     ~13
         20    > > JMPZ                                                     ~11, ->27
   55    21    >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FuL4Uc%3A55%243'
         22        BIND_LEXICAL                                             ~14, !1
         23        ASSIGN                                                   !2, ~14
   63    24        INIT_FCALL                                               'set_error_handler'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                                 
   71    27    >   INIT_FCALL                                               'function_exists'
         28        SEND_VAL                                                 'handleException'
         29        DO_ICALL                                         $17     
         30        BOOL_NOT                                         ~18     $17
         31      > JMPZ                                                     ~18, ->34
   76    32    >   DECLARE_FUNCTION                                         'logexception'
   93    33        DECLARE_FUNCTION                                         'handleexception'
  105    34    >   ISSET_ISEMPTY_CV                                 ~19     !0
         35        BOOL_NOT                                         ~20     ~19
         36      > JMPZ                                                     ~20, ->42
  106    37    >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FuL4Uc%3A106%246'
         38        ASSIGN                                                   !0, ~21
  119    39        INIT_FCALL                                               'register_shutdown_function'
         40        SEND_VAR                                                 !0
         41        DO_ICALL                                                 
  122    42    >   ISSET_ISEMPTY_CV                                 ~24     !1
         43      > JMPZ_EX                                          ~24     ~24, ->47
         44    >   ISSET_ISEMPTY_CV                                 ~25     !2
         45        BOOL_NOT                                         ~26     ~25
         46        BOOL                                             ~24     ~26
         47    > > JMPZ                                                     ~24, ->54
  123    48    >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FuL4Uc%3A123%247'
         49        BIND_LEXICAL                                             ~27, !1
         50        ASSIGN                                                   !2, ~27
  131    51        INIT_FCALL                                               'set_error_handler'
         52        SEND_VAR                                                 !2
         53        DO_ICALL                                                 
  136    54    >   NEW                                              $30     'Exception'
         55        SEND_VAL_EX                                              'after+both'
         56        DO_FCALL                                      0          
         57      > THROW                                         0          $30
         58*       JMP                                                      ->63
  139    59  E > > CATCH                                       last         'Exception'
  140    60    >   INIT_FCALL_BY_NAME                                       'handleException'
         61        SEND_VAR_EX                                              !3
         62        DO_FCALL                                      0          
  141    63      > RETURN                                                   1

Function %00logexception%2Fin%2FuL4Uc%3A8%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 29
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 29
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 29
filename:       /in/uL4Uc
function name:  logException
number of ops:  37
compiled vars:  !0 = $e, !1 = $type, !2 = $msg, !3 = $trace, !4 = $logger
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1        GET_CLASS                                        ~5      !0
          2        ASSIGN                                                   !1, ~5
   11     3        INIT_METHOD_CALL                                         !0, 'getMessage'
          4        DO_FCALL                                      0  $7      
          5        ASSIGN                                                   !2, $7
   12     6        INIT_METHOD_CALL                                         !0, 'getTraceAsString'
          7        DO_FCALL                                      0  $9      
          8        ASSIGN                                                   !3, $9
   14     9        BIND_GLOBAL                                              !4, 'logger'
   15    10        ISSET_ISEMPTY_CV                                         !4
         11      > JMPZ                                                     ~11, ->29
   16    12    >   INIT_METHOD_CALL                                         !4, 'error'
         13        INIT_FCALL                                               'sprintf'
         14        SEND_VAL                                                 '%25s%3A+%25s%0A%25s'
         15        SEND_VAR                                                 !1
         16        SEND_VAR                                                 !2
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $12     
         19        SEND_VAR_NO_REF_EX                                       $12
         20        DO_FCALL                                      0          
   17    21        INIT_FCALL                                               'method_exists'
         22        SEND_VAR                                                 !4
         23        SEND_VAL                                                 'newrelicLog'
         24        DO_ICALL                                         $14     
         25      > JMPZ                                                     $14, ->29
   18    26    >   INIT_METHOD_CALL                                         !4, 'newrelicLog'
         27        SEND_VAR_EX                                              !0
         28        DO_FCALL                                      0          
   22    29    >   INIT_FCALL                                               'sprintf'
         30        SEND_VAL                                                 '%3Ch1%3E%25s%3C%2Fh1%3E%3Cpre%3E%25s%3Cbr%2F%3E%3Ch2%3EDebug+Trace%3A%3C%2Fh2%3E%25s%3C%2Fpre%3E'
         31        SEND_VAR                                                 !1
         32        SEND_VAR                                                 !2
         33        SEND_VAR                                                 !3
         34        DO_ICALL                                         $16     
         35      > RETURN                                                   $16
   23    36*     > RETURN                                                   null

End of function %00logexception%2Fin%2FuL4Uc%3A8%240

Function %00handleexception%2Fin%2FuL4Uc%3A25%241:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 12
filename:       /in/uL4Uc
function name:  handleException
number of ops:  17
compiled vars:  !0 = $e, !1 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
   27     1        INIT_FCALL_BY_NAME                                       'logException'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !1, $2
   28     5        INIT_FCALL                                               'headers_sent'
          6        DO_ICALL                                         $4      
          7        BOOL_NOT                                         ~5      $4
          8      > JMPZ                                                     ~5, ->12
   29     9    >   INIT_FCALL                                               'header'
         10        SEND_VAL                                                 'HTTP%2F1.1+500+Internal+Server+Error'
         11        DO_ICALL                                                 
   31    12    >   INIT_FCALL                                               'trigger_error'
         13        SEND_VAL                                                 'boo'
         14        DO_ICALL                                                 
   32    15      > EXIT                                                     
   33    16*     > RETURN                                                   null

End of function %00handleexception%2Fin%2FuL4Uc%3A25%241

Function %00%7Bclosure%7D%2Fin%2FuL4Uc%3A38%242:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 19
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 20
Branch analysis from position: 20
2 jumps found. (Code = 107) Position 1 = 21, Position 2 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uL4Uc
function name:  {closure}
number of ops:  25
compiled vars:  !0 = $error, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   40     0  E >   INIT_FCALL                                               'error_get_last'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
   41     3        ISSET_ISEMPTY_CV                                         !0
          4      > JMPZ                                                     ~4, ->19
   42     5    >   NEW                                              $5      'Exception'
   43     6        FETCH_DIM_R                                      ~6      !0, 'message'
          7        CONCAT                                           ~7      ~6, '+in+'
          8        FETCH_DIM_R                                      ~8      !0, 'file'
          9        CONCAT                                           ~9      ~7, ~8
         10        CONCAT                                           ~10     ~9, '+at+line+'
         11        FETCH_DIM_R                                      ~11     !0, 'line'
         12        CONCAT                                           ~12     ~10, ~11
         13        SEND_VAL_EX                                              ~12
         14        CHECK_FUNC_ARG                                           
   44    15        FETCH_DIM_FUNC_ARG                               $13     !0, 'type'
         16        SEND_FUNC_ARG                                            $13
         17        DO_FCALL                                      0          
         18      > THROW                                         0          $5
         19    > > JMP                                                      ->24
   47    20  E > > CATCH                                       last         'Exception'
   48    21    >   INIT_FCALL_BY_NAME                                       'handleException'
         22        SEND_VAR_EX                                              !1
         23        DO_FCALL                                      0          
   50    24    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FuL4Uc%3A38%242

Function %00%7Bclosure%7D%2Fin%2FuL4Uc%3A55%243:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uL4Uc
function name:  {closure}
number of ops:  30
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline, !4 = $errcontext, !5 = $logger
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   55     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      null
          3        RECV_INIT                                        !3      null
          4        RECV_INIT                                        !4      <array>
          5        BIND_STATIC                                              !5
   57     6        INIT_FCALL                                               'error_reporting'
          7        DO_ICALL                                         $6      
          8        IS_NOT_IDENTICAL                                         $6, 0
          9      > JMPZ                                                     ~7, ->21
   58    10    >   NEW                                              $8      'Exception'
         11        ROPE_INIT                                     5  ~10     !1
         12        ROPE_ADD                                      1  ~10     ~10, '+in+'
         13        ROPE_ADD                                      2  ~10     ~10, !2
         14        ROPE_ADD                                      3  ~10     ~10, '+at+line+'
         15        ROPE_END                                      4  ~9      ~10, !3
         16        SEND_VAL_EX                                              ~9
         17        SEND_VAR_EX                                              !0
         18        DO_FCALL                                      0          
         19      > THROW                                         0          $8
         20*       JMP                                                      ->29
   60    21    >   INIT_METHOD_CALL                                         !5, 'error'
         22        ROPE_INIT                                     5  ~15     !1
         23        ROPE_ADD                                      1  ~15     ~15, '+in+'
         24        ROPE_ADD                                      2  ~15     ~15, !2
         25        ROPE_ADD                                      3  ~15     ~15, '+at+line+'
         26        ROPE_END                                      4  ~14     ~15, !3
         27        SEND_VAL_EX                                              ~14
         28        DO_FCALL                                      0          
   62    29      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FuL4Uc%3A55%243

Function %00logexception%2Fin%2FuL4Uc%3A76%244:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 29
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 29
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 29
filename:       /in/uL4Uc
function name:  logException
number of ops:  37
compiled vars:  !0 = $e, !1 = $type, !2 = $msg, !3 = $trace, !4 = $logger
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   76     0  E >   RECV                                             !0      
   78     1        GET_CLASS                                        ~5      !0
          2        ASSIGN                                                   !1, ~5
   79     3        INIT_METHOD_CALL                                         !0, 'getMessage'
          4        DO_FCALL                                      0  $7      
          5        ASSIGN                                                   !2, $7
   80     6        INIT_METHOD_CALL                                         !0, 'getTraceAsString'
          7        DO_FCALL                                      0  $9      
          8        ASSIGN                                                   !3, $9
   82     9        BIND_GLOBAL                                              !4, 'logger'
   83    10        ISSET_ISEMPTY_CV                                         !4
         11      > JMPZ                                                     ~11, ->29
   84    12    >   INIT_METHOD_CALL                                         !4, 'error'
         13        INIT_FCALL                                               'sprintf'
         14        SEND_VAL                                                 '%25s%3A+%25s%0A%25s'
         15        SEND_VAR                                                 !1
         16        SEND_VAR                                                 !2
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $12     
         19        SEND_VAR_NO_REF_EX                                       $12
         20        DO_FCALL                                      0          
   85    21        INIT_FCALL                                               'method_exists'
         22        SEND_VAR                                                 !4
         23        SEND_VAL                                                 'newrelicLog'
         24        DO_ICALL                                         $14     
         25      > JMPZ                                                     $14, ->29
   86    26    >   INIT_METHOD_CALL                                         !4, 'newrelicLog'
         27        SEND_VAR_EX                                              !0
         28        DO_FCALL                                      0          
   90    29    >   INIT_FCALL                                               'sprintf'
         30        SEND_VAL                                                 '%3Ch1%3E%25s%3C%2Fh1%3E%3Cpre%3E%25s%3Cbr%2F%3E%3Ch2%3EDebug+Trace%3A%3C%2Fh2%3E%25s%3C%2Fpre%3E'
         31        SEND_VAR                                                 !1
         32        SEND_VAR                                                 !2
         33        SEND_VAR                                                 !3
         34        DO_ICALL                                         $16     
         35      > RETURN                                                   $16
   91    36*     > RETURN                                                   null

End of function %00logexception%2Fin%2FuL4Uc%3A76%244

Function %00handleexception%2Fin%2FuL4Uc%3A93%245:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 12
filename:       /in/uL4Uc
function name:  handleException
number of ops:  19
compiled vars:  !0 = $e, !1 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   93     0  E >   RECV                                             !0      
   95     1        INIT_FCALL_BY_NAME                                       'logException'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !1, $2
   96     5        INIT_FCALL                                               'headers_sent'
          6        DO_ICALL                                         $4      
          7        BOOL_NOT                                         ~5      $4
          8      > JMPZ                                                     ~5, ->12
   97     9    >   INIT_FCALL                                               'header'
         10        SEND_VAL                                                 'HTTP%2F1.1+500+Internal+Server+Error'
         11        DO_ICALL                                                 
   99    12    >   INIT_FCALL                                               'dirname'
         13        SEND_VAL                                                 '%2Fin%2FuL4Uc'
         14        DO_ICALL                                         $7      
         15        CONCAT                                           ~8      $7, '..%2Fmodules%2Ffrontend%2Fviews%2Ferror%2Fexception.phtml'
         16        INCLUDE_OR_EVAL                                          ~8, INCLUDE
  100    17      > EXIT                                                     
  101    18*     > RETURN                                                   null

End of function %00handleexception%2Fin%2FuL4Uc%3A93%245

Function %00%7Bclosure%7D%2Fin%2FuL4Uc%3A106%246:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 19
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 20
Branch analysis from position: 20
2 jumps found. (Code = 107) Position 1 = 21, Position 2 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uL4Uc
function name:  {closure}
number of ops:  25
compiled vars:  !0 = $error, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  108     0  E >   INIT_FCALL                                               'error_get_last'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
  109     3        ISSET_ISEMPTY_CV                                         !0
          4      > JMPZ                                                     ~4, ->19
  110     5    >   NEW                                              $5      'Exception'
  111     6        FETCH_DIM_R                                      ~6      !0, 'message'
          7        CONCAT                                           ~7      ~6, '+in+'
          8        FETCH_DIM_R                                      ~8      !0, 'file'
          9        CONCAT                                           ~9      ~7, ~8
         10        CONCAT                                           ~10     ~9, '+at+line+'
         11        FETCH_DIM_R                                      ~11     !0, 'line'
         12        CONCAT                                           ~12     ~10, ~11
         13        SEND_VAL_EX                                              ~12
         14        CHECK_FUNC_ARG                                           
  112    15        FETCH_DIM_FUNC_ARG                               $13     !0, 'type'
         16        SEND_FUNC_ARG                                            $13
         17        DO_FCALL                                      0          
         18      > THROW                                         0          $5
         19    > > JMP                                                      ->24
  115    20  E > > CATCH                                       last         'Exception'
  116    21    >   INIT_FCALL_BY_NAME                                       'handleException'
         22        SEND_VAR_EX                                              !1
         23        DO_FCALL                                      0          
  118    24    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FuL4Uc%3A106%246

Function %00%7Bclosure%7D%2Fin%2FuL4Uc%3A123%247:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uL4Uc
function name:  {closure}
number of ops:  30
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline, !4 = $errcontext, !5 = $logger
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  123     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      null
          3        RECV_INIT                                        !3      null
          4        RECV_INIT                                        !4      <array>
          5        BIND_STATIC                                              !5
  125     6        INIT_FCALL                                               'error_reporting'
          7        DO_ICALL                                         $6      
          8        IS_NOT_IDENTICAL                                         $6, 0
          9      > JMPZ                                                     ~7, ->21
  126    10    >   NEW                                              $8      'Exception'
         11        ROPE_INIT                                     5  ~10     !1
         12        ROPE_ADD                                      1  ~10     ~10, '+in+'
         13        ROPE_ADD                                      2  ~10     ~10, !2
         14        ROPE_ADD                                      3  ~10     ~10, '+at+line+'
         15        ROPE_END                                      4  ~9      ~10, !3
         16        SEND_VAL_EX                                              ~9
         17        SEND_VAR_EX                                              !0
         18        DO_FCALL                                      0          
         19      > THROW                                         0          $8
         20*       JMP                                                      ->29
  128    21    >   INIT_METHOD_CALL                                         !5, 'error'
         22        ROPE_INIT                                     5  ~15     !1
         23        ROPE_ADD                                      1  ~15     ~15, '+in+'
         24        ROPE_ADD                                      2  ~15     ~15, !2
         25        ROPE_ADD                                      3  ~15     ~15, '+at+line+'
         26        ROPE_END                                      4  ~14     ~15, !3
         27        SEND_VAL_EX                                              ~14
         28        DO_FCALL                                      0          
  130    29      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FuL4Uc%3A123%247

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.5 ms | 1424 KiB | 35 Q