$cache = new WeakMap; $a = new Address; $cache[$a] = 123;