3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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
Jump found. Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
Jump found. Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
Jump found. Position 1 = -2
filename:       /in/0gviC
function name:  (null)
number of ops:  13
compiled vars:  !0 = $e
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
         1        NOP                                                      
  13     2        NEW                                              $3      :-4
         3        SEND_VAL_EX                                              'foo'
         4        SEND_VAL_EX                                              'abc'
         5        DO_FCALL                                      0          
         6      > THROW                                         0          $3
         7*       JMP                                                      ->12
  15     8  E > > CATCH                                                    'Exception', !0
  16     9    >   INIT_METHOD_CALL                                         !0, 'getMessage'
        10        DO_FCALL                                      0  $5      
        11        ECHO                                                     $5
        12      > RETURN                                                   1

Class CSqlException:
Function __construct:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/0gviC
function name:  __construct
number of ops:  9
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        FETCH_CLASS                                 514  :2      
         3        INIT_STATIC_METHOD_CALL                                  $2
         4        SEND_VAR_EX                                              !0
         5        SEND_VAR_EX                                              !1
         6        SEND_VAL_EX                                              null
         7        DO_FCALL                                      0          
   9     8      > RETURN                                                   null

End of function __construct

End of class CSqlException.

Generated using Vulcan Logic Dumper, using php 7.3.0