Browse all series
LanguagesIntermediate9 episodes

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 51s

Install PHP 8 with a painless Homebrew formula guide; also learn Docker and Vagrant alternatives for isolated testing environments.

The Nullsafe Operator

3m 12s

Learn 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 6s

Discover 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 40s

Learn 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 25s

Discover 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 48s

Explore 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 51s

Explore 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 32s

Discover 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 15s

Learn PHP 8 union types and the mixed pseudo-type: declare multiple parameter types without docblocks for clearer, safer code.

Continue learning

Thumbnail for How to Read Code
How to Read Code

With Jeffrey Way

  • 6 episodes
  • Intermediate
  • Techniques
Thumbnail for What's New in PHP 7.4
What's New in PHP 7.4

With Jeffrey Way

  • 3 episodes
  • Intermediate
  • Languages
Thumbnail for Spam Prevention Techniques
Spam Prevention Techniques

With Jeffrey Way

  • 6 episodes
  • Intermediate
  • Techniques
Thumbnail for PHP Testing Jargon
PHP Testing Jargon

With Jeffrey Way

  • 14 episodes
  • Intermediate
  • Testing
Thumbnail for Modern JavaScript Basics
Modern JavaScript Basics

With Andrew Schmelyun

  • 10 episodes
  • Beginner
  • Languages

Would you like to hear from Laracasts by email occasionally?