3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Lol { protected static $cache = NULL; public static function setCacheFromLol() { static::$cache = "Lol"; } public static function getCacheFromLol() { return static::$cache; } } class Lol1 extends Lol { public static function setCacheFromLol1() { static::$cache = "Lol1"; } public static function getCacheFromLol1() { return static::$cache; } } class Lol2 extends Lol { public static function setCacheFromLol2() { static::$cache = "Lol1"; } public static function getCacheFromLol2() { return static::$cache; } } Lol1::setCacheFromLol1(); echo Lol2::getCacheFromLol2(); // Lol1 Lol1::setCacheFromLol(); echo Lol2::getCacheFromLol2(); // Lol
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GpUI2
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   35     0  E >   INIT_STATIC_METHOD_CALL                                  'Lol1', 'setCacheFromLol1'
          1        DO_FCALL                                      0          
   36     2        INIT_STATIC_METHOD_CALL                                  'Lol2', 'getCacheFromLol2'
          3        DO_FCALL                                      0  $1      
          4        ECHO                                                     $1
   38     5        INIT_STATIC_METHOD_CALL                                  'Lol1', 'setCacheFromLol'
          6        DO_FCALL                                      0          
   39     7        INIT_STATIC_METHOD_CALL                                  'Lol2', 'getCacheFromLol2'
          8        DO_FCALL                                      0  $3      
          9        ECHO                                                     $3
         10      > RETURN                                                   1

Class Lol:
Function setcachefromlol:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GpUI2
function name:  setCacheFromLol
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN_STATIC_PROP                                       'cache'
          1        OP_DATA                                                  'Lol'
    8     2      > RETURN                                                   null

End of function setcachefromlol

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

End of function getcachefromlol

End of class Lol.

Class Lol1:
Function setcachefromlol1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GpUI2
function name:  setCacheFromLol1
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ASSIGN_STATIC_PROP                                       'cache'
          1        OP_DATA                                                  'Lol1'
   18     2      > RETURN                                                   null

End of function setcachefromlol1

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

End of function getcachefromlol1

Function setcachefromlol:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GpUI2
function name:  setCacheFromLol
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN_STATIC_PROP                                       'cache'
          1        OP_DATA                                                  'Lol'
    8     2      > RETURN                                                   null

End of function setcachefromlol

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

End of function getcachefromlol

End of class Lol1.

Class Lol2:
Function setcachefromlol2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GpUI2
function name:  setCacheFromLol2
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   ASSIGN_STATIC_PROP                                       'cache'
          1        OP_DATA                                                  'Lol1'
   28     2      > RETURN                                                   null

End of function setcachefromlol2

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

End of function getcachefromlol2

Function setcachefromlol:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GpUI2
function name:  setCacheFromLol
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN_STATIC_PROP                                       'cache'
          1        OP_DATA                                                  'Lol'
    8     2      > RETURN                                                   null

End of function setcachefromlol

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

End of function getcachefromlol

End of class Lol2.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.14 ms | 1000 KiB | 13 Q