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; } } $exception = new IbmApiExceptionDB(); $exception->setMessage(array(1,2,3)); throw $exception;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/boBSQ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $exception
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $1      'IbmApiExceptionDB'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   23     3        INIT_METHOD_CALL                                         !0, 'setMessage'
          4        SEND_VAL_EX                                              <array>
          5        DO_FCALL                                      0          
   24     6      > THROW                                         0          !0
          7*     > 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/boBSQ
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/boBSQ
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.68 ms | 1395 KiB | 13 Q