<?php

class D {
  function go() {
    static::$boom = new stdclass;
  }
}

class Y extends D {
  static $boom = 'heh';
}

function go() {
  var_dump(Y::$boom);
  var_dump(is_string(Y::$boom));
  (new Y)->go();
  var_dump(Y::$boom);
  var_dump(is_string(Y::$boom));
  var_dump(is_object(Y::$boom));
}

go();
