Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 348781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:23:49+00:00 2026-05-12T11:23:49+00:00

I know that PHP is compiled to byte code before it is run on

  • 0

I know that PHP is compiled to byte code before it is run on the server, and then that byte code can be cached so that the whole script doesn’t have to be re-interpreted with every web access.

But can you “compile” PHP code and upload a binary-ish file, which will just be run by the byte code interpreter?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T11:23:49+00:00Added an answer on May 12, 2026 at 11:23 am

    After this question was asked, Facebook launched HipHop for PHP which is probably the best-tested PHP compiler to date (seeing as it ran one of the world’s 10 biggest websites). However, Facebook discontinued it in favour of HHVM, which is a virtual machine, not a compiler.

    Beyond that, googling PHP compiler turns up a number of 3rd party solutions.

    PeachPie

    • PeachPie GitHub
    • compiles PHP to .NET and .NET Core
    • can be compiled into self-contained binary file
    • runs on Mac, Linux, Windows, Windows Core, ARM, …

    Phalanger

    • GitHub (download), Wikipedia
    • compiles to .NET (CIL) looks discontinued from July 2017 and doesn’t seem to support PHP 7.

    phc

    • compiles to native binaries
    • not very active now (February 2014) – last version in 2011, last change in summer 2013

    Roadsend PHP Compiler

    • GitHub, GitHub of a rewrite
    • free, open source implementation of PHP with compiler
    • compiles to native binaries (Windows, Linux)
    • discontinued since 2010 till contributors found – website down, stays on GitHub where last change is from early 2012

    bcompiler

    • PECL extension of PHP
    • experimental
    • compiles to PHP bytecode, but can wrap it in Windows binary that loads PHP interpreter (see bcompiler_write_exe_footer() manual)
    • looks discontinued now (February 2014) – last change in 2011

    Project Zero

    • Wikipedia, IBM
    • incubator of changes for WebSphere sMash
    • supported by IBM
    • compiles to Java bytecode
    • looks discontinued now (February 2014) – website down, looks like big hype in 2008 and 2009

    Bambalam

    • compiles to stand-alone Windows binaries
    • the binaries contain bytecode and a launcher
    • looks discontinued now (February 2014) – last change in 2006

    BinaryPHP

    • compiles to C++
    • looks discontinued now (February 2014) – last change in 2003
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 225k
  • Answers 225k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer In 3.2.1 on Snow Leopard, there is a "Project->Rename..." menu… May 13, 2026 at 1:00 am
  • Editorial Team
    Editorial Team added an answer Tests are not supposed to debug your code for you.… May 13, 2026 at 1:00 am
  • Editorial Team
    Editorial Team added an answer I am not aware of any simple way to do… May 13, 2026 at 1:00 am

Related Questions

This is something I've always wondered: Why is PHP slower than Java or C#,
I installed php 5.3 through MacPorts and now i tried to connect to a
As a classic ASP developer about once a year since ASP.NET came out I
I was just wondering how prepared queries work. I am using PHP and MySQL.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.