After reading the answers to List of Big-O for PHP functions I got a little curious.
The Answer of Kendall Hopkins states that php lookups are O(n) for large arrays and constant time (means O(1) ?!) for small. He posted an image containing a graph which shows the time a constant amount of lookups (1 million) take depending on the size of the array. It starts almost vertically and then flattens.
From what I learned constant time means that the time taken is not a function of the elements in the array which means a horizontal graph not a vertical. I think his graph looks more like O(log n) which would fit the comments stating PHP implements recursive hash tables.
I did my own testing (using his script) and the graph turned out pretty much the same (PHP 5.3.23).
As this is a top rated answer I'm a little bit scared. Can you tell me if I'm getting this whole O(x) thing wrong? If so please help me.
Anyway: @Kendall Hopkins Thanks for your great answer !