PHP7 uses hashtables to implement arrays. A hashtable stores elements in buckets within a data array. It uses a translation table to map hashes to bucket indexes. When an element is added, its key's hash is used to find the corresponding translation table index, then the bucket at that index is linked into a collision chain. If the table size exceeds a threshold during insertions or deletions, it will resize the table to be larger or more compact.