3v4l.org

run code in 500+ PHP versions simultaneously
<?php class MyException extends \Exception { public function __construct($message = '') { parent::__construct($message); } } class MyOtherException extends MyException { public function __construct($message = NULL) { parent::__construct($message); } } $e = new MyOtherException(); var_dump($e->getMessage());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jLt2v
function name:  (null)
number of ops:  9
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   NEW                                                  $1      'MyOtherException'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   16     3        INIT_FCALL                                                   'var_dump'
          4        INIT_METHOD_CALL                                             !0, 'getMessage'
          5        DO_FCALL                                          0  $4      
          6        SEND_VAR                                                     $4
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

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

End of function __construct

End of class MyException.

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

End of function __construct

End of class MyOtherException.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
132.42 ms | 477 KiB | 8 Q