3v4l.org

run code in 300+ PHP versions simultaneously
<?php class JeromeException extends Exception { protected $boobies = []; function __construct($message = null, $code = 0, Exception $previous = null, $arrayOfBoobies = []) { $this->boobies = $arrayOfBoobies; } function getTraceEx() { return $this->getTrace() + ['boobies' => $this->boobies]; } } function jeromeIsExceptional() { try { throw new JeromeException('herro', 0, null, ['34B', '32C', '36D']); } catch (JeromeException $e) { var_dump($e->getTraceEx()); } } jeromeIsExceptional();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TkNpc
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   INIT_FCALL                                               'jeromeisexceptional'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function jeromeisexceptional:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TkNpc
function name:  jeromeIsExceptional
number of ops:  15
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $1      'JeromeException'
          1        SEND_VAL_EX                                              'herro'
          2        SEND_VAL_EX                                              0
          3        SEND_VAL_EX                                              null
          4        SEND_VAL_EX                                              <array>
          5        DO_FCALL                                      0          
          6      > THROW                                         0          $1
          7*       JMP                                                      ->14
   23     8  E > > CATCH                                       last         'JeromeException'
   24     9    >   INIT_FCALL                                               'var_dump'
         10        INIT_METHOD_CALL                                         !0, 'getTraceEx'
         11        DO_FCALL                                      0  $3      
         12        SEND_VAR                                                 $3
         13        DO_ICALL                                                 
   26    14      > RETURN                                                   null

End of function jeromeisexceptional

Class JeromeException:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TkNpc
function name:  __construct
number of ops:  7
compiled vars:  !0 = $message, !1 = $code, !2 = $previous, !3 = $arrayOfBoobies
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      0
          2        RECV_INIT                                        !2      null
          3        RECV_INIT                                        !3      <array>
    9     4        ASSIGN_OBJ                                               'boobies'
          5        OP_DATA                                                  !3
   10     6      > RETURN                                                   null

End of function __construct

Function gettraceex:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TkNpc
function name:  getTraceEx
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_METHOD_CALL                                         'getTrace'
          1        DO_FCALL                                      0  $0      
          2        FETCH_OBJ_R                                      ~1      'boobies'
          3        INIT_ARRAY                                       ~2      ~1, 'boobies'
          4        ADD                                              ~3      $0, ~2
          5      > RETURN                                                   ~3
   15     6*     > RETURN                                                   null

End of function gettraceex

End of class JeromeException.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.73 ms | 1450 KiB | 15 Q