NB: You have SplFixedArray which can cover some use-cases. On Mon, 31 Aug 2020, 20:48 Markus Fischer, <mar...@fischer.name> wrote:
> On 31.08.20 20:13, Riikka Kalliomäki wrote: > > Another similar problem with creating array copies is the detection of > > "indexed" arrays (as opposed to associative arrays). > > I'm looking forward to an answer from someone proficient in this area > because _I think_ the engine _internally_ keeps track of this for > performance optimizations, though I don't think it exposes it. > > - Markus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > >