PHP 8.5.0 Alpha 2 available for testing

Voting

: six plus two?
(Example: nine)

The Note You're Voting On

Peter, Moscow
14 years ago
Using $text .= "additional text"; instead of $text = $text ."additional text"; can seriously enhance performance due to memory allocation efficiency.

I reduced execution time from 5 sec to .5 sec (10 times) by simply switching to the first pattern for a loop with 900 iterations over a string $text that reaches 800K by the end.

<< Back to user notes page

To Top