3v4l.org

run code in 300+ PHP versions simultaneously
<?php class IbmApiExceptionDB extends Exception { private $messages = array(); public function setMessage($messageLabel, $msgArgs = null, $moduleName = null) { if (is_array($messageLabel)) { $this->messages = $messageLabel; $messageLabel = ''; } //parent::setMessage($messageLabel, $msgArgs, $moduleName); } public function getMessages() { return $this->messages; } } try { $exception = new IbmApiExceptionDB(); $exception->setMessage(array(1,2,3)); throw $exception; } catch (Exception $e) { echo 111; }
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/9Hms4
function name:  (null)
number of ops:  11
compiled vars:  !0 = $exception, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $2      'IbmApiExceptionDB'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   24     3        INIT_METHOD_CALL                                         !0, 'setMessage'
          4        SEND_VAL_EX                                              <array>
          5        DO_FCALL                                      0          
   25     6      > THROW                                         0          !0
          7*       JMP                                                      ->10
   26     8  E > > CATCH                                       last         'Exception'
   27     9    >   ECHO                                                     111
   28    10      > RETURN                                                   1

Class IbmApiExceptionDB:
Function setmessage:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/9Hms4
function name:  setMessage
number of ops:  9
compiled vars:  !0 = $messageLabel, !1 = $msgArgs, !2 = $moduleName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2        RECV_INIT                                        !2      null
    9     3        TYPE_CHECK                                  128          !0
          4      > JMPZ                                                     ~3, ->8
   10     5    >   ASSIGN_OBJ                                               'messages'
          6        OP_DATA                                                  !0
   11     7        ASSIGN                                                   !0, ''
   14     8    > > RETURN                                                   null

End of function setmessage

Function getmessages:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Hms4
function name:  getMessages
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   FETCH_OBJ_R                                      ~0      'messages'
          1      > RETURN                                                   ~0
   19     2*     > RETURN                                                   null

End of function getmessages

End of class IbmApiExceptionDB.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.61 ms | 1395 KiB | 13 Q