3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AException extends \Exception {} class T extends \RuntimeException{ public function __construct($message, AException $e) { parent::__construct($message, $e->getCode(), $e); } } throw new T("CRAP", new AException);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/RAFmp
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $0      'T'
          1        SEND_VAL_EX                                              'CRAP'
          2        NEW                                              $1      'AException'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $1
          5        DO_FCALL                                      0          
          6      > THROW                                         0          $0
          7*     > RETURN                                                   1

Class AException: [no user functions]
Class T:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RAFmp
function name:  __construct
number of ops:  10
compiled vars:  !0 = $message, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        INIT_STATIC_METHOD_CALL                                  
          3        SEND_VAR_EX                                              !0
          4        INIT_METHOD_CALL                                         !1, 'getCode'
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR_NO_REF_EX                                       $2
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
    8     9      > RETURN                                                   null

End of function __construct

End of class T.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.77 ms | 1393 KiB | 13 Q