DEV Community

Discussion on: Classification of computer languages (III)

Collapse
 
cviniciussdias profile image
Vinicius Dias

Nice article!

But PHP is more on the line of "virtual machine languages" than "interpreted languages".

PHP is "compiled" to what's called opcodes just once, the first time the program is executed.

After that, the "compiled" opcodes are stored in what we usually call "opcache" and the Zend Engine (PHP's VM) won't need rerecompile the application.

In PHP 7.4 preloading was introduced, making "opcache" even better, saving the compiled code in memory.

PHP 8 will introduce JIT (Just In Time compiler).

This is just an addition to your great article, because PHP doen't do this "translation" or "compilation" everytime it runs.

:-D