# Supported PHP features
The codebase can include the following PHP features, as to support:
- PHP 8.1+ for development
- PHP 7.1+ for production by downgrading the code via Rector.
PHP Version | Features |
---|---|
7.1 | Everything |
7.2 | object typeparameter type widening Functions:Constants: |
7.3 | Reference assignments in list() /array destructuring => [&$a, [$b, &$c]] = $d Except inside foreach (#4376)Flexible Heredoc and Nowdoc syntax Trailing commans in functions calls set(raw)cookie accepts $option argumentFunctions:Exceptions: |
7.4 | Typed properties Arrow functions Null coalescing assignment operator => ??= Unpacking inside arrays => $nums = [3, 4]; $merged = [1, 2, ...$nums, 5]; Numeric literal separator => 1_000_000 strip_tags() with array of tag names => strip_tags($str, ['a', 'p']) covariant return types and contravariant param types Functions: |