Intern
What versions of PHP have you worked with?
sobes.tech AI
Answer from AI
Worked with PHP versions 5.3, 5.4, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2.
Main changes and features used:
- PHP 5.3: namespaces, anonymous functions, late static binding.
- PHP 5.4: traits, short array syntax
[]. - PHP 5.6: constant scalar expressions, variadic functions, exponentiation operator
**. - PHP 7: significant performance increase (Zend Engine 3), scalar type hints, union types hints, declared return types, null coalescing operator
??, spaceship operator<=>, anonymous classes. - PHP 7.1: nullable types, void return type, class constant visibility modifiers.
- PHP 7.2: object type hint, Argon2 hashing, callable type hint modifier.
- PHP 7.3: Heredoc and Nowdoc syntax, flexible syntax formatting for Heredoc and Nowdoc, new function
is_countable(). - PHP 7.4: typed properties, arrow functions, FFI (Foreign Function Interface).
- PHP 8.0: JIT (Just-In-Time) compiler, named arguments, attributes, union types v2, match expression, nullsafe operator
?->. - PHP 8.1: enumerations, fibers, read-only properties,
newin initializers, first-classcallablesyntax. - PHP 8.2: read-only classes, DNF Types (Disjunctive Normal Form Types), new classes for readonly properties.
I have experience migrating projects between different versions, considering deprecated features and new capabilities.