implement simple spl_object_hash

Challenge Accepted! :+1: