Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
PHP
/
PHP 8.0 features
When can a promoted property be read through $this inside its constructor?
from PHP 8.0 features
PHP 8.3.33
intermediate
1 min
When can a promoted property be read through $this inside its constructor?
From the start of the constructor body, after automatic assignment
Only after assigning it manually in the constructor body
Only after the constructor returns
Only when the property is public
Check
Ask AI about this kata
Report an error
previous kata
What four lines does this program print?
Predict the output
next kata
Review generated shipping quote
Review AI code
A new version is available
Reload