Re: Re: "use strict" or similar in PHP?
| From: | Michael A. Peters | Date: | Fri, 27 Feb 2009 22:32:57 +0000 |
| Subject: | Re: Re: "use strict" or similar in PHP? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288949@lists.php.net to get a copy of this message | ||
Robert Cummings wrote:
... the line between the
definition of interpreted language and compiled language is quite blurry these days.#include<stdio.h> main() {
printf("Hello World");
}
Compile that - and you can run it on any system that is binary compatible, whether or not is has a C compiler.
However, it will not run on systems that are not binary compatible, even if they have a C compiler.
<?php
print ("Hello World");
?>
That will only run on systems with a php interpreter, even if you "compile" it into byte-code.
However, unlike the c example, it will run on any system with a php interpreter.
Nothing fuzzy about it.