3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait NormalizedExceptionTrait { public function normalizedConstructor( string $normalizedMessage, array $messageContext = [], int $code = 0, ?Throwable $previous = null ) { } } class NormalizedException extends Exception { use NormalizedExceptionTrait { NormalizedExceptionTrait::normalizedConstructor as __construct; } } class FlowException extends NormalizedException { protected $code; public function __construct( $message, $code = 'default', $context = [] ) { parent::__construct( $message, $context ); $this->code = $code; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7uiLN
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                                'normalizedexception', 'exception'
   21     1        DECLARE_CLASS                                                'flowexception', 'normalizedexception'
   28     2      > RETURN                                                       1

Class NormalizedExceptionTrait:
Function normalizedconstructor:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7uiLN
function name:  normalizedConstructor
number of ops:  5
compiled vars:  !0 = $normalizedMessage, !1 = $messageContext, !2 = $code, !3 = $previous
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
    6     1        RECV_INIT                                            !1      <array>
    7     2        RECV_INIT                                            !2      0
    8     3        RECV_INIT                                            !3      null
   10     4      > RETURN                                                       null

End of function normalizedconstructor

End of class NormalizedExceptionTrait.

Class NormalizedException: [no user functions]
Class FlowException:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7uiLN
function name:  __construct
number of ops:  10
compiled vars:  !0 = $message, !1 = $code, !2 = $context
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   24     0  E >   RECV                                                 !0      
          1        RECV_INIT                                            !1      'default'
          2        RECV_INIT                                            !2      <array>
   25     3        INIT_STATIC_METHOD_CALL                                      
          4        SEND_VAR_EX                                                  !0
          5        SEND_VAR_EX                                                  !2
          6        DO_FCALL                                          0          
   26     7        ASSIGN_OBJ                                                   'code'
          8        OP_DATA                                                      !1
   27     9      > RETURN                                                       null

End of function __construct

End of class FlowException.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.77 ms | 3418 KiB | 13 Q