PHP is always evolving, and it's important to stay up-to-date with the latest features and improvements. This article introduces 20 PHP features you should know as of 2023, each illustrated with a handy code example. PHP 8 introduces two JIT compilation engines, Tracing JIT and Function JIT.
Table of contents
20 PHP Features You Should Know in 20231. str_contains():2. str_starts_with():3. str_ends_with():4. get_debug_type():5. get_resource_id():6. fdiv():7. preg_last_error_msg():8. array_key_first():9. array_key_last():10. ErrorException::getSeverity():11. Filter Functions:12. Weak Map:13. Value Objects:14. Match Expression:15. Nullsafe Operator:16. Named Arguments:17. Attributes:18. Constructor Property Promotion:19. Union Types:20. Just In Time Compilation (JIT):5 Comments
Sort: