PHP 8 Crash Course
PHP 8 is now officially available. As part of this new release, not only will you benefit from performance improvements - thanks to the new JIT compiler - but you'll also enjoy useful new operators and types, attributes, match expressions, and so much more.
If you're intrigued, hop in and we'll review everything you need to know.
Series episodes
How to Install PHP 8
1m 51sInstall PHP 8 with a painless Homebrew formula guide; also learn Docker and Vagrant alternatives for isolated testing environments.
The Nullsafe Operator
3m 12sLearn how PHP 8’s Nullsafe operator simplifies method calls on nullable values, preventing errors and making your code cleaner and safer. See it in action!
Match Expressions
2m 6sDiscover PHP 8’s match expressions—an elegant, concise alternative to switch statements. Write clearer, more flexible code with this powerful new feature!
Constructor Property Promotion
4m 40sLearn how PHP 8’s constructor property promotion cuts boilerplate by combining property declaration and initialization—write cleaner, faster, and more concise classes!
$object::class
1m 25sDiscover PHP 8’s new ::class feature on objects, simplifying class name retrieval with cleaner syntax—an easy, powerful alternative to get_class()!
Named Parameters
5m 48sExplore PHP 8’s named parameters feature to pass arguments by name, not order. Learn the benefits and drawbacks to improve your code clarity and flexibility!
New String Helpers
4m 51sExplore PHP’s new string helpers like str_contains, str_starts_with, and str_ends_with. Simplify your string checks with these handy, modern functions!
Weak Maps
7m 32sDiscover how Weak Maps store key-value pairs with automatic garbage collection. Learn when and why to use this powerful, memory-efficient JavaScript tool!
Union and Pseudo Types
8m 15sLearn PHP 8 union types and the mixed pseudo-type: declare multiple parameter types without docblocks for clearer, safer code.




