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
  • HarroHarro
    Accepted Answer
    Not that I am aware of. I don't know anyone who tried or felt the need to.
  • deepvyasdeepvyas
    Accepted Answer
    Hi, Did you checked  
    https://www.tutorialspoint.com/execute_php_online.php
    Let me know if it helped 
  • FinlayDaG33kFinlayDaG33k
    Accepted Answer
    @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.
  • HarroHarro
    Accepted Answer
    And not to forget, PHP 7 is virtually as fast as HHVM.
  • Hello everyone,

    sorry for
    the time I took, in these last 3 months I moved away from PHP because
    of a project involving Microsoft Hololens, it was crazy this project.

    Thanks for all the answers, now I will have time to test all the mentioned options,

    Thank you all.

Howdy, Stranger!

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

In this Discussion