PHP

5 replies [Last post]
Offline
Last seen: 41 weeks 1 day ago
Joined: 11/22/2010
Posts:

Can i compile my PHP code and c the out put?

piwh1000's picture
Offline
Last seen: 7 hours 37 min ago
Joined: 02/15/2008
Posts:
Not at this time.

Not at this time.

Developer - Compilr.com

magius96's picture
Offline
Last seen: 14 weeks 1 day ago
Joined: 04/13/2009
Posts:
PHP Compiled???

Oddly enough, I've never heard of PHP code being compiled. Can someone point me to a site where I could obtain a sample PHP compiler? I've always known PHP to be an interpreted language, like JavaScript is.

----------------------------------------------------------------------------------------------------
"Coding your life, Compiling your dreams, and crashing your future."
Compilr - C# and VB.NET Advisor

Offline
Last seen: 50 weeks 3 days ago
Joined: 05/25/2011
Posts:
PHP Compiler

FWIW there is at least one well known PHP compiler: https://github.com/facebook/hiphop-php/wiki/

magius96's picture
Offline
Last seen: 14 weeks 1 day ago
Joined: 04/13/2009
Posts:
PHP Compiler

I'm aware of that program, and I will respond by saying that it does not compile PHP. It translates it into C++ and then compiles it. That's essentially the same thing as if I translate Java into C# and compile it. Am I compiling Java? No, I'm compiling C#, just translating Java.

At any rate, I'll assume that the use of that program for translate/compile is what the OP is referring to. Honestly, with the number of users that use C# or Visual Basic, and the amount of support is available for those languages, I personally don't see a reason for adding that. Of course, I also don't see a reason to want to compile PHP when Visual Basic .NET is so much easier and PHP is really designed to be a web page scripting language as opposed to an application language.

That's just my thoughts on it, though the staff at Compilr may have a different opinion.

----------------------------------------------------------------------------------------------------
"Coding your life, Compiling your dreams, and crashing your future."
Compilr - C# and VB.NET Advisor

Offline
Last seen: 12 weeks 4 days ago
Joined: 02/19/2012
Posts:
PHP < VisualBasic??

VisualBasic is indeed a lot easier... Because it's aimed at retards who can't programme...

Perhaps a reason someone would want to translate and then compile a language is because they prefer to write in the language they were writing in to start with - honestly, do you really think it's possible to learn all the languages in the world? At any rate, VB.NET sucks, have you been to their website lately -- of course; after all you are a 'VB.Net advisor' -- anyways, a 4 year old has better design sense than that piece of crap... Perhaps if you were to learn PHP instead of VB and C sharp (the apparent 'most supported languages'), then perhaps it wouldn't be as much as an eyesore.

If you really are a VB.NET advisor, get a real job -- one that requires a brain...