3 ms·
The difference between php-5.2 (the version used), php-5.3, and php-5.4 is quite vast for each version, especially since php-5.4 basically cut memory usage/exec
by ihsw 14y ago
The difference between php-5.2 (the version used), php-5.3, and php-5.4 is quite vast for each version, especially since php-5.4 basically cut memory usage/execution time by a third at worst (or directly by half at best) when compared to php-5.3.
This is purely anecdotal but I use PHP for large scripts doing lots of inserts/deletes (>100,000) from databases and relatively simple logic.
- thejosh 14y agoNice, I'll have to give 5.4 a try. Currently using 5.3, and finding it memory hogging when doing a lot of database operations in a row (300k+).
- ihsw 14y agoDepending on the ORM (or otherwise) it may have some level of caching, so the best performance would be using the PHP functions/classes directly (eg: PDO/MongoCollection/Redis). In addition to the above, PHP extensions would be extremely preferable to pure-PHP libraries for database interaction simply because the extensions will be written in C and lack the overhead of the language.
- nolok 14y agoSadly, PHP 5.4 stills fails badly with APC in several cases, so I do not consider it ready for production yet
- RobAley 14y agoDo you have any links to the bugs? We use 5.4 in production and haven't had any issues with APC, so I'm curious if we're missing anything relevant to our use case.
- maratd 14y ago> Sadly, PHP 5.4 stills fails badly with APC in several cases, so I do not consider it ready for production yet You're using outdated APC code. Update to the latest, it resolves issues with the 5.4 line. We use it in production, zero issues.