Time/Space complexity of PHP Array

后端 未结 3 522
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-16 00:38

Is there a way or a resource for finding the time and space complexity of the Array implementation in PHP other than calculating it by hand?

An array

3条回答
  •  不思量自难忘°
    2020-12-16 00:46

    In addition to what @Mike Lewis said, I would add, that one array element in PHP occupies minimum of 52 bytes (proof)

提交回复
热议问题