PHP language, like any programming language, is composed by language constructions. Beyond the basic programming structures (conditional, loop, classes syntax, functions syntax, etc), the language has some built-in functions. They are functions compiled in the core language.
Search This Blog
Showing posts with label performance. Show all posts
Showing posts with label performance. Show all posts
10/16/2011
Language Constructions
Tags:
curiosity,
performance,
php,
syntax
8/13/2011
Foreach vs. For
Tags:
curiosity,
performance,
php
Last year, at a PHP mailing list discussion, I was surprised with the information that the loop structure "for" was faster than "foreach". After, I receive the source of that information: The PHP Benchmark. The site's author said the "for" is faster for write operations, but is slower for reading traveled items. Taking a look at the source-code, I came to the conclusion it was wrong a little strange.
Subscribe to:
Posts (Atom)