language-bench

PHP

The Zend Engine: a bytecode virtual machine with reference counting and a cycle collector, run here through the command-line interpreter.

www.php.net ↗
Overall speed rank
-
no data yet
Latest release
8.6
8 tracked releases since 2019
Strongest on
-
Weakest on
-

Performance by problem

Newest release (8.6), default build (php -d memory_limit=-1). The index is how many times slower this language is than the fastest entry on that problem (1.00× = fastest); rank is among all languages.

No benchmark sessions have been recorded yet.

The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.

Build settings

php -d memory_limit=-1 default

Default interpreter without OPcache or JIT; only the memory limit is lifted.

php -d memory_limit=-1 {harness}/harness.php {src}/main.php

Every release (default build)

No benchmark sessions have been recorded yet.

The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.

Speed across releases

Did PHP get faster? Every tracked release plotted at its release date, one line per build setting. Shows time, memory or binary size over all problems by default.

No benchmark sessions have been recorded yet.

The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.

Release highlights

  1. PHP 8.6 2026-11-17
  2. PHP 8.5 2025-11-20
    Pipe operator · URI extension
  3. PHP 8.4 2024-11-21
    Property hooks · Asymmetric visibility
  4. PHP 8.3 2023-11-23
    Typed class constants · json_validate()
  5. PHP 8.2 2022-12-06
  6. PHP 8.1 2021-11-23
  7. PHP 8.0 2020-11-24
  8. PHP 7.4 2019-11-26

Badge

Show this language's overall rank in your README or website:

PreviewPHP rank on language-bench
Markdown[![PHP on language-bench](https://stijnris.github.io/language-bench/badges/php.svg)](https://stijnris.github.io/language-bench/languages/php/)
HTML<a href="https://stijnris.github.io/language-bench/languages/php/"><img src="https://stijnris.github.io/language-bench/badges/php.svg" alt="PHP on language-bench"></a>