3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A extends Extension { const DEFAULT_CODE = 404; public function __construct($message = '', $code = 0, $exception = NULL) { parent::__construct($message, static::DEFAULT_CODE, $exception); } } class B extends A { const DEFAULT_CODE = 504; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gY16n
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'a', 'extension'
   11     1        DECLARE_CLASS                                            'b', 'a'
   13     2      > RETURN                                                   1

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

End of function __construct

End of class A.

Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.48 ms | 1393 KiB | 13 Q