spl_object_id— Return the integer object handle for given object 说明 spl_object_id(object $object): int This function returns a unique identifier for the object. The object id is unique for the lifetime of the object. Once the object is destroyed, its id may be reused for other object...
https://php.net/spl_object_id requires php 7.2+, and the latest releases of prophecy also require php 7.2+. (aside: it has polyfills such as symfony/polyfill-php72) I'd personally find the object ids easier to read/distinguish from each ...