Get your own PHP server Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<?php
class pi {
  public static $value=3.14159;
}
class x extends pi {
  public function xStatic() {
    return parent::$value;
  } 
}
// Get value of static property directly via child class
echo x::$value;
// Get value of static property via xStatic() method
$x = new x();
echo $x->xStatic();
?>
 
</body>
</html>
3.141593.14159