What's new in PHP 8.1
- enums
- fibers
- array unpacking with string keys
- `new` in initializers
- readonly properties
- first-class callables
- the `never` type
- `array_is_list`
- and more, so exciting!
PHP 8.3 will have a new json_validate function that basically does what its name says. Previously we had to combine `json_decode` with `try/catch` to make sure a JSON string was valid. This function also requires less memory than the old workaround.
PHP is NOT becoming java. PHP is so much more than its syntax. It’s an ecosystem, a mindset, a community.
Besides that, the language itself is still very different. PHP is as close to Java as it is to C++, C#, Ruby and Python.
I'm so proud: two years of working together with a lot of talented programmers, finally we tagged Tempest 1.0: a new framework for PHP web and application development embracing modern PHP
tempestphp.com/blog/tempest-1#php
Some important news: today marked my last day @spatie_be, and I’ll start my job as dev advocate/content manager @phpstorm next Monday!
I’m gonna miss my awesome colleagues, but I’m also very excited!
youtu.be/R9xTgaRzAQs