converting php to assembly/machine
<p>i heard someone say that the purpose of scripting languages it to abastract out the low-level stuff...also if you look at how sites are developed you see that when sites want efficiency they switch from php to C++, C# or similar.  </p>

<p>PHP is written in C.  C compiles to assembly/machine code...so theoretically you should be able to think of PHP in terms of assembly if you knew how.  Is there a way to view the assembly for PHP or does this go against the design pupose of a scripting language?  </p>

<p>To say you have an advanced command of the language should you be able to view it in terms of assembly?</p>

<p>I have a general understanding of PHP class design on the high level but how low-level should one go with out "going against the design of the languge".</p>

<p>If there is a line where is it drawn?  How do I convert php to assembly?</p>

<p>I'm asking the question b.c. I want to have an advanced knowledge of the language and I need to know if this would be a requirement.</p>

<p>For example, you could look up the php call in C.  From there you could use gcc tools to view that assembly...but does anyone do this?</p>
