Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Php compiler
  • Hi every one, 

    Is there any tool to compile php condes and that works with fuelphp?

    Thanks
  • Harro VertonHarro Verton
    Accepted Answer
    Not that I am aware of. I don't know anyone who tried or felt the need to.
  • Hi, Did you checked  
    https://www.tutorialspoint.com/execute_php_online.php
    Let me know if it helped 
  • @deepvyas: that's not a compiler.
    PHP by default runs the code to an interpreter.
    You can find more information about how PHP executes in this article.
    You could try HHVM which does compile it into bytecode which is then compiled using a JIT compiler (just like Java works).
    Using HHVM can be a big upgrade IF you are willing to learn how to use it properly (don't ask me, I barely scraped the surface of it).

    One of the major upsides of HHVM is that it compiles the code one, then reuses the same bytecode over and over again, which is massively faster than just interpreting.
    However, PHP can just use OPcache to achieve pretty much the same.
    It also does require more setup, and less code might work out-of-the-box.

    So unless your app requires thousands if not millions of transactions per second and you're willing to rewrite code to work with HHVM, using HHVM might not be what you want (though it can be fun to look in none-the-less!).

    For alternatives, your options are pretty much non-existent.
    The power of PHP is that it doesn't have to be compiled.
  • And not to forget, PHP 7 is virtually as fast as HHVM.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion