3v4l.org

run code in 500+ PHP versions simultaneously
<?php class CustomException extends Exception{ public function __construct($message = '', $code = '', $previous = NULL) { parent::__construct($message, $code); } } try { throw new \CustomException(); } catch(\Exception $exc) { throw new \CustomException($exc->getMessage(), $exc->getCode(), $exc); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/Ya32I
function name:  (null)
number of ops:  16
compiled vars:  !0 = $exc
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   NEW                                                  $1      'CustomException'
          1        DO_FCALL                                          0          
          2      > THROW                                             0          $1
          3*       JMP                                                          ->15
   13     4  E > > CATCH                                           last         'Exception'
   14     5    >   NEW                                                  $3      'CustomException'
          6        INIT_METHOD_CALL                                             !0, 'getMessage'
          7        DO_FCALL                                          0  $4      
          8        SEND_VAR_NO_REF_EX                                           $4
          9        INIT_METHOD_CALL                                             !0, 'getCode'
         10        DO_FCALL                                          0  $5      
         11        SEND_VAR_NO_REF_EX                                           $5
         12        SEND_VAR_EX                                                  !0
         13        DO_FCALL                                          0          
         14      > THROW                                             0          $3
   15    15*     > RETURN                                                       1

Class CustomException:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ya32I
function name:  __construct
number of ops:  8
compiled vars:  !0 = $message, !1 = $code, !2 = $previous
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                            !0      ''
          1        RECV_INIT                                            !1      ''
          2        RECV_INIT                                            !2      null
    6     3        INIT_STATIC_METHOD_CALL                                      
          4        SEND_VAR_EX                                                  !0
          5        SEND_VAR_EX                                                  !1
          6        DO_FCALL                                          0          
    7     7      > RETURN                                                       null

End of function __construct

End of class CustomException.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
138.16 ms | 513 KiB | 9 Q