DEV Community

Discussion on: PHP Perfomance optimization

 
nemutaisama profile image
Andrey Ageev

I understand your point, and fully agree. I think it's again problem that i can't explain what's on my mind, damn my bad english ). I just trying to say that it's not so much strings in enough good designed project, and using "fastest" quotes for each case won't give you real profit. IMHO good choice is select quotes for better readability and team codestyle.

Thread Thread
 
devmount profile image
Andreas

*sneaks in and whispers* As long as no variables are replaced, there is no significant difference between single and double quotes. I did a quick benchmark today with PHP 7.4:

See discussion in my recent article about PHP performance optimization:

*sneaks out*