Skip to main content

PHP 8.3

PHP 8.3 brought typed class constants, the #[\Override] attribute, a dedicated json_validate() function and a deep-clone friendly readonly story. This is the current default for many projects. (Note: :latest is a moving alias and tracks the highest published PHP line.)

Image tag

docker pull himanshuramavat/php-ci:8.3
PropertyValue
Image taghimanshuramavat/php-ci:8.3
PHP branch8.3.x
StatusActive — recommended
Recommended default

8.3 has full active support and broad framework compatibility. Use it for new projects unless you have a specific reason to be on 8.4.

Run the suite

docker run --rm -v "$(pwd):/app" -w /app himanshuramavat/php-ci:8.3 \
bash -c "composer install --no-interaction && ./vendor/bin/phpunit"

Language features available

  • Typed class constants (const string VERSION = '1.0';)
  • #[\Override] attribute to assert a method overrides a parent
  • json_validate() — validate JSON without decoding it
  • Dynamic class constant fetch (Foo::{$name})
  • Re-architected readonly cloning semantics

Why it's the default

  • Long active-support runway.
  • Validated against current TYPO3 and Laravel LTS releases.

See TYPO3 and Laravel for framework-specific recipes built on this tag.