3v4l.org

run code in 300+ PHP versions simultaneously
<?php class par { protected static $a = " AA"; function echoA() { echo self::$a; } } class enf extends par { function __construct() { self::$a .= ' BB'; parent::$a .= ' CC'; } } class arenf extends par { function echoA() { echo self::$a; } } $enf = new enf(); $enf->echoA(); $arenf = new arenf(); $arenf->echoA();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mqikF
function name:  (null)
number of ops:  11
compiled vars:  !0 = $enf, !1 = $arenf
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $2      'enf'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   23     3        INIT_METHOD_CALL                                         !0, 'echoA'
          4        DO_FCALL                                      0          
   24     5        NEW                                              $6      'arenf'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
   25     8        INIT_METHOD_CALL                                         !1, 'echoA'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class par:
Function echoa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mqikF
function name:  echoA
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'a'
          1        ECHO                                                     ~0
    6     2      > RETURN                                                   null

End of function echoa

End of class par.

Class enf:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mqikF
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN_STATIC_PROP_OP                         8          'a'
          1        OP_DATA                                                  '+BB'
   12     2        ASSIGN_STATIC_PROP_OP                         8          'a'
          3        OP_DATA                                                  '+CC'
   13     4      > RETURN                                                   null

End of function __construct

Function echoa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mqikF
function name:  echoA
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'a'
          1        ECHO                                                     ~0
    6     2      > RETURN                                                   null

End of function echoa

End of class enf.

Class arenf:
Function echoa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mqikF
function name:  echoA
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'a'
          1        ECHO                                                     ~0
   19     2      > RETURN                                                   null

End of function echoa

End of class arenf.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.65 ms | 1399 KiB | 13 Q