PHP

what is psysh ?

psysh is a REPL for php like ipython for python

PHP-FIG

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"

what is psr ?

PSR stands for php standard recomendation and is proposed by php-fig

these standards propose the modern PHP coding style

PHPUnit

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

All about php versions

what is the difference between php7 and php5 ?

php solid principle

A B
C D

reference

php vs java

reference

php compiled or interpreted ?

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

common terms

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 .

reference