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 8082903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:16:31+00:00 2026-06-05T17:16:31+00:00

The question is mostly related to PHP because IMHO opcode is mostly mentioned in

  • 0

The question is mostly related to PHP because IMHO opcode is mostly mentioned in PHP context. According to this description, here’s a transformation process of php code into opcode:

php text -> scanning/parsing -> result = tokens -> compiling > result = opcode

Several questions here:

1) Is opcode just a portion of machine code, does machine code consist of opcodes?
2) Thinking in the context of Wamp server, what PHP module is responsible for? Is that module just PHP interpreter who transforms PHP code into tokens or is it also a compiler who compiles tokens into opcode that is executed on the hardware (processor)?

  • 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-06-05T17:16:33+00:00Added an answer on June 5, 2026 at 5:16 pm

    The question is mostly related to PHP because IMHO opcode is mostly mentioned in PHP context.

    In fact Java is more popular for its byte-/opcode

    1) Is opcode just a portion of machine code, does machine code consist of opcodes?

    Yes, but this opcodes are machine-dependent. The interesting thing in Java or PHP bytecode is that it’s machine independent and runs in a platform-specific virtual machine.

    2) Thinking in the context of Wamp server, what PHP module is responsible for?

    No module, it’s part of the core.

    Lexer => Tokenizer => Compiler
    

    Is that module just PHP interpreter who transforms PHP code into tokens or is it also a compiler who compiles tokens into opcode that is executed on the hardware (processor)?

    Not exactly. The resulting bytecode is machine-independent (named “Zend-opcode”) and cannot run directly on the hardware. The last step is to transform this bytecode into machine-dependent opcodes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is mostly academic. I ask out of curiosity, not because this poses
This is somewhat related to my security question here . Is it a bad
My first post here! My question relates to iframes and php mostly So... it's
This question is mostly related to my previous question. I'm having an Edit view
This is a question mostly concerning WinAPI RegSetValueEx. If you look at its description
This is mostly a data warehouse philosophy question. My project involves an Oracle forms
I mostly develop using C#, but I think this question might be suitable for
This is mostly just out of curiosity, and is potentially a silly question. :)
I asked a related question here: Clojure: How do I turn clojure code into
This is mostly a theoretical question I'm just very curious about. (I'm not trying

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.