<?php class Foo { public function __toString() { return spl_object_hash($this); } } $a[(string) new Foo()] = 'bar';
You have javascript disabled. You will not be able to edit any code.