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.

Pixel Tracking in PHP

Updated 16th August 2022

When creating email campaigns, it’s important to know how many recipients actually opened your email. This information can help you determine if your efforts are working or if it’s time to change your strategy. Most mail champaign tools such as Mailchimp and SendInBlue use a technique called Pixel Tracking. In this post, you will learn

Laravel 419 page expired after login [SOLVED]

Updated 1st January 2024

Laravel is the most popular PHP framework, dominating the space since 2014, and the chosen framework by many new PHP developers. Many new developers run into the same errors when first using the framework, the most common being a 419 Page Expired error on a form post.  What is Cross-Site Request Forgery (CSRF)? Cross-site request

How to check Composer version – Install and use Composer for PHP

Updated 11th January 2024

Composer is a dependency manager for PHP. First released in 2012, Composer, and its adoption by popular frameworks such as Laravel has single-handedly driven the rise in PHP adoption in recent years. In this post, I will show you how to install and use Composer. How to install Composer To get started, download Composer from