Different implementation of collections in php.