Are you asking what php version uses copy on write for arrays? If so, it's all of them (at least in the last decade). I have never known it not to do this.
No, I'm not asking anything. I'm just saying that PHP doesn't have what I expect from a programming language and that I've chosen not to use it.
> which versions of PHP support this lazy copy concept
The price of a dedicated cpu is down to under $4 /month in common web hosts. Meanwhile the IO and other performance also improved so much that you dont ever, ever notice such things. So nobody cares about that kind of stuff. That's overoptimization that nobody asked for.
> Looks like it's true; but I couldn' find any official documentation supporting this fact.
The same user found the documentation after they bothered doing an interesting modern technique called "looking for it".
You'd have known that if you read the comment right after the one you copied.
Such a simple question as whether something is passed by reference or by value shouldn't result in "This is a super interesting piece of information! Looks like it's true; but I couldn' find any official documentation supporting this fact. We also need to know which versions of PHP support this lazy copy concept. Anyone has more info?" https://stackoverflow.com/a/9740541/3461