News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sara Golemon's Blog:
Compiled Variables
May 24, 2006 @ 17:39:32

In a new post from her blog today, Sara Golemon seeks to dispell any FUD that might come up surrounding compiled variables (as there's already some issues raised in this interview).

Last month at php|tek I gave a presentation on "How PHP Ticks" where I covered, among other things the process of compiling source code into opcodes (an intermediate psuedo-language similar to what java calls "bytecode" or what .NET calls "MSIL"). As part of this section of the presentation, I showed one of the more interresting changes between ZE 2.0 (PHP 5.0) and ZE 2.1 (PHP 5.1), namely: How variables are retreived and used in an operation. More specifically, how they provide a small, yet cumulative, speedup to applications in a way that's transparent to the end-user -- One more reason to like PHP 5.1 right?

After listening to Marcus Whitney's interview with Brion Vibber of WikiMedia in which he mentions my presentation and makes reference to this engine change, I realized that I should clarify what this feature is (and more importantly, what it isn't) before any FUD spreads.

She describes what they are with an illustration using a simple PHP script and breaking it out into the compiled version's parts - both in PHP4 and the PHP5 versions. Of course, representing what they are needs a flipside, so she presents a look at what they are *not* as well. There's also a brief mention of the special status that globals and static variables get outside the norm.

0 comments voice your opinion now!
compiled variables confusion interview php4 php5 compiled variables confusion interview php4 php5


blog comments powered by Disqus

Similar Posts

DevShed: Iterators in the Simplest Sense - Traversing Data Structures in PHP 5

Marco Tabini\'s Blog: Security-related bugs are good. No, really!

PHP Magazine: IPM Poll Question: What Are the Misconceptions Surrounding PHP?

DevShed: Searching and Replacing Nodes with SimpleXML in PHP 5 (Part 3)

PHP.net: PHP 4.4.6 Released


Community Events

Don't see your event here?
Let us know!


laravel framework library opinion voicesoftheelephpant install example xdebug community interview laravel5 extension release unittest introduction api podcast language php7 series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework