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) { ob_clean(); $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) { ob_clean(); $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(); }
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/DjOWq
function name:  (null)
number of ops:  63
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'
   38     7    >   ISSET_ISEMPTY_CV                                 ~6      !0
          8        BOOL_NOT                                         ~7      ~6
          9      > JMPZ                                                     ~7, ->15
   39    10    >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FDjOWq%3A39%242'
         11        ASSIGN                                                   !0, ~8
   52    12        INIT_FCALL                                               'register_shutdown_function'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   55    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
   56    21    >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FDjOWq%3A56%243'
         22        BIND_LEXICAL                                             ~14, !1
         23        ASSIGN                                                   !2, ~14
   64    24        INIT_FCALL                                               'set_error_handler'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                                 
   72    27    >   INIT_FCALL                                               'function_exists'
         28        SEND_VAL                                                 'handleException'
         29        DO_ICALL                                         $17     
         30        BOOL_NOT                                         ~18     $17
         31      > JMPZ                                                     ~18, ->34
   77    32    >   DECLARE_FUNCTION                                         'logexception'
   94    33        DECLARE_FUNCTION                                         'handleexception'
  107    34    >   ISSET_ISEMPTY_CV                                 ~19     !0
         35        BOOL_NOT                                         ~20     ~19
         36      > JMPZ                                                     ~20, ->42
  108    37    >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FDjOWq%3A108%246'
         38        ASSIGN                                                   !0, ~21
  121    39        INIT_FCALL                                               'register_shutdown_function'
         40        SEND_VAR                                                 !0
         41        DO_ICALL                                                 
  124    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
  125    48    >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FDjOWq%3A125%247'
         49        BIND_LEXICAL                                             ~27, !1
         50        ASSIGN                                                   !2, ~27
  133    51        INIT_FCALL                                               'set_error_handler'
         52        SEND_VAR                                                 !2
         53        DO_ICALL                                                 
  138    54    >   NEW                                              $30     'Exception'
         55        SEND_VAL_EX                                              'after+both'
         56        DO_FCALL                                      0          
         57      > THROW                                         0          $30
         58*       JMP                                                      ->62
  141    59  E > > CATCH                                       last         'Exception'
  142    60    >   INIT_FCALL_BY_NAME                                       'handleException'
         61        DO_FCALL                                      0          
  143    62      > RETURN                                                   1

Function %00logexception%2Fin%2FDjOWq%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/DjOWq
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%2FDjOWq%3A8%240

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

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

Function %00%7Bclosure%7D%2Fin%2FDjOWq%3A39%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/DjOWq
function name:  {closure}
number of ops:  25
compiled vars:  !0 = $error, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   41     0  E >   INIT_FCALL                                               'error_get_last'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
   42     3        ISSET_ISEMPTY_CV                                         !0
          4      > JMPZ                                                     ~4, ->19
   43     5    >   NEW                                              $5      'Exception'
   44     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                                           
   45    15        FETCH_DIM_FUNC_ARG                               $13     !0, 'type'
         16        SEND_FUNC_ARG                                            $13
         17        DO_FCALL                                      0          
         18      > THROW                                         0          $5
         19    > > JMP                                                      ->24
   48    20  E > > CATCH                                       last         'Exception'
   49    21    >   INIT_FCALL_BY_NAME                                       'handleException'
         22        SEND_VAR_EX                                              !1
         23        DO_FCALL                                      0          
   51    24    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FDjOWq%3A39%242

Function %00%7Bclosure%7D%2Fin%2FDjOWq%3A56%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/DjOWq
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
-------------------------------------------------------------------------------------
   56     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
   58     6        INIT_FCALL                                               'error_reporting'
          7        DO_ICALL                                         $6      
          8        IS_NOT_IDENTICAL                                         $6, 0
          9      > JMPZ                                                     ~7, ->21
   59    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
   61    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          
   63    29      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FDjOWq%3A56%243

Function %00logexception%2Fin%2FDjOWq%3A77%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/DjOWq
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
-------------------------------------------------------------------------------------
   77     0  E >   RECV                                             !0      
   79     1        GET_CLASS                                        ~5      !0
          2        ASSIGN                                                   !1, ~5
   80     3        INIT_METHOD_CALL                                         !0, 'getMessage'
          4        DO_FCALL                                      0  $7      
          5        ASSIGN                                                   !2, $7
   81     6        INIT_METHOD_CALL                                         !0, 'getTraceAsString'
          7        DO_FCALL                                      0  $9      
          8        ASSIGN                                                   !3, $9
   83     9        BIND_GLOBAL                                              !4, 'logger'
   84    10        ISSET_ISEMPTY_CV                                         !4
         11      > JMPZ                                                     ~11, ->29
   85    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          
   86    21        INIT_FCALL                                               'method_exists'
         22        SEND_VAR                                                 !4
         23        SEND_VAL                                                 'newrelicLog'
         24        DO_ICALL                                         $14     
         25      > JMPZ                                                     $14, ->29
   87    26    >   INIT_METHOD_CALL                                         !4, 'newrelicLog'
         27        SEND_VAR_EX                                              !0
         28        DO_FCALL                                      0          
   91    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
   92    36*     > RETURN                                                   null

End of function %00logexception%2Fin%2FDjOWq%3A77%244

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

End of function %00handleexception%2Fin%2FDjOWq%3A94%245

Function %00%7Bclosure%7D%2Fin%2FDjOWq%3A108%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/DjOWq
function name:  {closure}
number of ops:  25
compiled vars:  !0 = $error, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  110     0  E >   INIT_FCALL                                               'error_get_last'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
  111     3        ISSET_ISEMPTY_CV                                         !0
          4      > JMPZ                                                     ~4, ->19
  112     5    >   NEW                                              $5      'Exception'
  113     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                                           
  114    15        FETCH_DIM_FUNC_ARG                               $13     !0, 'type'
         16        SEND_FUNC_ARG                                            $13
         17        DO_FCALL                                      0          
         18      > THROW                                         0          $5
         19    > > JMP                                                      ->24
  117    20  E > > CATCH                                       last         'Exception'
  118    21    >   INIT_FCALL_BY_NAME                                       'handleException'
         22        SEND_VAR_EX                                              !1
         23        DO_FCALL                                      0          
  120    24    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FDjOWq%3A108%246

Function %00%7Bclosure%7D%2Fin%2FDjOWq%3A125%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/DjOWq
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
-------------------------------------------------------------------------------------
  125     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
  127     6        INIT_FCALL                                               'error_reporting'
          7        DO_ICALL                                         $6      
          8        IS_NOT_IDENTICAL                                         $6, 0
          9      > JMPZ                                                     ~7, ->21
  128    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
  130    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          
  132    29      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FDjOWq%3A125%247

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.48 ms | 1424 KiB | 37 Q