3 ms·
It's from one of the first implementations of the language. If you want to move fast, and you have no ambition about execution speed, this is a solution to the
by jlouis 4y ago
It's from one of the first implementations of the language. If you want to move fast, and you have no ambition about execution speed, this is a solution to the problem of implementing loops.
PHP worked by parsing code directly from the file for every executed statement. So you ran the full lex->parse->interpret path for each statement. A loop need to jump back, which can be tracked by the file offset position, so you can redo the lex->parse->interpret step for the loops statements again.
Modern PHP will not do this, because it's highly inefficient. I'm not even sure it survived into the 2000's.