psysh is a REPL for php like ipython for python
PHP-FIG stands for PHP Framewor Interop Group
it is a consontium formed by members from the biggest PHP projects frameworks and cms
for long php had no coding style . PHP-FIG proposes a single unity of code saying "Let’s stop worrying about code style, let’s everyone follow a standard and start thinking about creating great software"
PSR stands for php standard recomendation and is proposed by php-fig
these standards propose the modern PHP coding style
for unit testing php unit is used , it is a porgrammer oriented testing framework for php
It is an instance of the xUnit architecture for unit testing frameworks.
xUnit is the collective name for several unit testing frameworks
A | B |
---|---|
C | D |
php is interpreted but ,php is compiled down to an intermidiate code that is then interpreted by the runtime zend engine
PHP compiler is responsible for
- convert the code to a bytecode that can be used by the runtime engine.
- resolve functions, names and classes names
- creating a symbol table
PHP Interpreter does
- Goes through the bytecode line by line and executes it
- Handles runtime exception
expression something that resolves to a vlaue.
statement is a command given to the computer .
compiler compiler translates high level source code into a set of machine instructions that could be understood by the computer CPU .
interpreter the code of interpreted language
must be translated at run time from any format to cpu machine code one statement at a time .