Where Are The Benchmarks For Phar?

Posted by Stuart Herbert on June 29th, 2008 in Toolbox.

Derick recently blogged that “phar is cool!” Cool is great … but it doesn’t answer important questions: how does loading your application from a .phar file affect overall performance and scalability? How well does it work with leading bytecode caches?

Where are the benchmarks for phar? :)


  1. Jan Schneider says:
    June 29th, 2008 at 11:51 pm

    They are regularly posted on the PHP internals mailing list, check, the archives. The good news is, that Greg managed to optimize is so far that it performs almost identically to native PHP applications. And it works better with byte code caches from week to week.

  2. Brian Moon says:
    June 30th, 2008 at 3:12 am


    There you go.

  3. Derick says:
    June 30th, 2008 at 6:31 am

    My name is “Derick” – like it is mentioned at least one time in the domain name, two times in my email address and one time in the header on my site. It isn’t that hard!

  4. Stuart Herbert says:
    June 30th, 2008 at 10:45 am

    @Derick: sorry about that … I’m just too used to the English spelling of the word I guess …

  5. Sammy Moshe says:
    November 8th, 2010 at 5:35 am

    Hey guys, I’ve been looking for something that goes into a little practical application of this. I haven’t implemented one yet, so please bear with my ignorance when I ask this: is it absolutely mandatory to sign a phar? Or will it run unsigned?

  6. Paul says:
    February 28th, 2012 at 6:35 pm

    But isn’t phar a lot slower for static files? Normally static files are served directly by the webserver without envoking php, but static files within a phar require a php call, right?