PHP

PHP – Take advantage of language constructs

Fastest things in PHP are the language constructs. They are highly optimized in the interpreter Don’t require calling external libraries Don’t call a function if there is a language construct. As an example, using a casting operator like (int) $total is much more efficient than using the function intval($foo) Function calling generate considerably amount of overhead. Using a […]

Leave a comment