# PHP 8.1: new in initializers

DevFeed: [PHP 8.1: new in initializers](<https://devfeed.tech/articles/php-8-1-new-in-initializers-44207.md>)

Original publisher: [Read original article](<https://stitcher.io/blog/php-81-new-in-initializers>)

Author: Brent

Published: 2021-10-09T00:00:00Z

Content type: article

Language: en

Sources: [Stitcher](<https://devfeed.tech/sources/stitcher-io.md>)

Topics: [PHP](<https://devfeed.tech/topics/php.md>), [class](<https://devfeed.tech/topics/class.md>), [constructor](<https://devfeed.tech/topics/constructor.md>), [Parameter](<https://devfeed.tech/topics/parameter.md>), [properties](<https://devfeed.tech/topics/properties.md>), [syntax](<https://devfeed.tech/topics/syntax.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [constructor](<https://devfeed.tech/tags/constructor.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [php](<https://devfeed.tech/tags/php.md>), [php-8-1](<https://devfeed.tech/tags/php-8-1.md>), [properties](<https://devfeed.tech/tags/properties.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [validation](<https://devfeed.tech/tags/validation.md>)

## AI overview

A tutorial explaining PHP 8.1's support for new expressions in initializers, including parameter default values, attribute arguments, static variable initializers, and global constant initializers. It also covers lazy construction, limitations in class properties, and promoted properties.

## Source excerpt

Read the full post on https://stitcher.io/blog/php-81-new-in-initializers