- F astest 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 language construct avoid
- isset() and unset() are both language constructs , even though they mostly act like functions. However calling them does not generate the function overhead.
Some common language constructs are:
- echo()
- empty()
- isset()
- unset()
- eval()
- exit()
- die()
- include()
- include_once()
- require()
- require_once()
- return
http://tracehills.com/browse.php?b=5&u=Oi8vbWFobXVkYWhzYW4ud29yZHByZXNzLmNvbS8yMDA4LzA3LzAyL3BocC10YWtlLWFkdmFudGFnZS1vZi1sYW5ndWFnZS1jb25zdHJ1Y3RzLw%3D%3D