What's new in PHP 8.1
summary
Enumerations become real objects with backed enums (string/int values), .from and .tryFrom, per-case methods, static factories and a .cases listing; Fibers run cooperative multitasking using nonblocking stream socket pairs and an event loop with fiber suspend/resume demonstrated end-to-end; new return type never marks functions that cannot return; constructor default new initializers, implicit property accessors (get/set/read-only), final class constants, ICU date-pattern generator, globals cleanup and Serializable deprecation all land or are drafted and the demos execute as shown.
AI-written summary · about
chapters (24)
- 0:00Start
- 6:44New Enum Type
- 7:00Enum
- 8:39Static Resolution Operator
- 10:54Backed Enums
- 14:45Static Methods
- 15:46Value Listing
- 16:47Fibers
- 17:02Cooperative Multitasking
- 17:58Event Loop
- 29:34Static Variables
- 33:03Class Constants
- 37:31Closure
- 37:56Long Closure
- 39:23Properties
- 42:35Asymmetric Visibility
- 45:00Inheritance
- 46:41Intel Date Pattern Generator
- 48:20New Intel Date Pattern Generator
- 49:33Changes to Globals
- 51:56New Serial Serializable Mechanism
- 55:01Incompatible Floating Point Numbers
- 56:05When Is Php 81 Going To Be Available
- 58:03How Does Implicit Property Excesses Tie Together with the Read-Only Property Setup








