3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CSqlException extends Exception { public function __construct($p_Message, $p_Code=0) { parent::__construct($p_Message, $p_Code, null); } } try { throw new CsqlException('foo', "abc"); } catch (Exception $e) { echo $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gviC
function name:  (null)
number of ops:  11
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'CsqlException'
          1        SEND_VAL_EX                                              'foo'
          2        SEND_VAL_EX                                              'abc'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $1
          5*       JMP                                                      ->10
   15     6  E > > CATCH                                       last         'Exception'
   16     7    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          8        DO_FCALL                                      0  $3      
          9        ECHO                                                     $3
   17    10      > RETURN                                                   1

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

End of function __construct

End of class CSqlException.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.39 ms | 1385 KiB | 13 Q