3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myexception extends Exception { public function __construct($message, Throwable $previous = null) { parent::__construct($message, 0, $previous); } } $standardException = new Exception('standard Exception'); $myexception = new myexception('first without throwable'); $myexception = new myexception('second with throwable', $standardException);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KN4lL
function name:  (null)
number of ops:  14
compiled vars:  !0 = $standardException, !1 = $myexception
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'Exception'
          1        SEND_VAL_EX                                              'standard+Exception'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   12     4        NEW                                              $5      'myexception'
          5        SEND_VAL_EX                                              'first+without+throwable'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
   13     8        NEW                                              $8      'myexception'
          9        SEND_VAL_EX                                              'second+with+throwable'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $8
         13      > RETURN                                                   1

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

End of function __construct

End of class myexception.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.23 ms | 1394 KiB | 13 Q