[PHP-DEV] Why hashtable keeps insertion order by default ?

2017-06-03 Thread Pawel Por
Hi, AFAIK the hashtable in PHP by default keeps the order in which the elements are inserted. Could you please write me why it keeps the insertion order by default ? Thanks in advance for clarification. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.ph

[PHP-DEV] Hashtable collision resolution in PHP 7

2017-05-16 Thread Pawel Por
Hi I'm trying to understand why PHP 7 hashtables are more efficient than PHP 5 hashtables. I'm confused about hashes that are in collision. In PHP 5 there were a linked lists to resolve collisions. What about PHP 7 ? Are there still linked lists ? I read somewhere that the solution taken in PHP 7