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(); $arenf = new arenf(); $arenf->echoA();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UvBIJ
function name:  (null)
number of ops:  9
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        NEW                                              $5      'arenf'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   24     6        INIT_METHOD_CALL                                         !1, 'echoA'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class par:
Function echoa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UvBIJ
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/UvBIJ
function name:  __construct
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'a'
          1        CONCAT                                           ~1      ~0, '+BB'
          2        FREE                                                     ~1
   12     3        FETCH_STATIC_PROP_R          unknown             ~2      'a'
          4        CONCAT                                           ~3      ~2, '+CC'
          5        FREE                                                     ~3
   13     6      > 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/UvBIJ
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/UvBIJ
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:
155.86 ms | 1399 KiB | 13 Q