PHP interpreted or compiled ? PHP uses a blend of - TopicsExpress



          

PHP interpreted or compiled ? PHP uses a blend of interpretation and compilation in order to provide the best mix of performance and flexibility to programmers. Behind the scenes, PHP compiles your script down to a series of instructions (called opcodes) whenever it is accessed. These instructions are then executed one by one until the script terminates. Furthermore, it provides very quick feedback during development. If you have an error somewhere in your file, PHP will refuse to compile the page until you have fixed the problem, and you are able to step through execution of your code line by line until you find the problem. The speed hit of regular compilation is nullified entirely by the use of PHP accelerators. One major advantage to having interpreted code is that all memory used by the script is managed by PHP, and the language automatically cleans up after every script has finished. This means that you do not need to worry about closing #database links, freeing memory assigned to images, and so on, because PHP will do it for you. #PHP #compiler #interpreter sources: tuxradar/practicalphp/2/2/2
Posted on: Mon, 21 Apr 2014 21:24:18 +0000

Trending Topics



Recently Viewed Topics




© 2015