What is the Lexing stage in PHP

By Dillon Smart · · · 1 Comments

Lexing is a phase the PHP interpreter undergoes while interpreting the source code written.

Lexing, is the first of four overall steps performed by the PHP interpreter.

Steps in the PHP Interpreter

The PHP interpreter undergoes a total of four steps before executing the code written.

  • Lexing
  • Parsing
  • Compilation
  • Interpretation

What is Lexing in PHP

Lexical analysis, also known as tokenizing, it is a phase that consists of converting a string of characters from source code written in PHP into a sequence of tokens that describe what each subsequent encountered value means.

PHP

1 Comment

PHP Numeric Literal Separator - IKnowThatNow

[…] I wrote an post which explains more about the Lexing stage in PHP. […]

Was this helpful? Leave a comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Laravel – Specified key was too long Error

Updated 18th May 2021

With Laravel 5.4, some users may be hit with the Laravel Specified key was too long Error when migrating the database. This is because in the latest Laravel update, the developers made changes to the default database charset, making it utf8mb4. If your using MySQL 5.7.7 or higher, you won’t encounter this issue, however older versions of MySQL

Alternative ways of doing the same things in Laravel

Updated 29th March 2022

Laravel is a large framework, with contributions coming from almost 2000 developers worldwide. Over its 10 year journey, there have been additions to the framework to do the same thing, only shorter. In this post, I have highlighted some alternative ways of doing the same things in Laravel. How to get the authenticated users id

What is PHP?

Updated 1st August 2022

PHP (PHP: Hypertext Preprocessor) is an open-source, general-purpose, and server-side scripting language widely used in web development. PHP is used to manage databases, dynamic content, session tracking, and much more. Let’s answer the question “What is PHP?”. What is PHP used for? Since its first release in 1995, PHP has been seen used in many