'PHP 8.4 is a major update of the PHP language. It contains many new features, such as property hooks, asymmetric visibility, an updated DOM API, performance improvements, bug fixes, and general cleanup.', 'documentation' => 'Doc', 'main_title' => 'Released!', 'main_subtitle' => 'PHP 8.4 is a major update of the PHP language.
It contains many new features, such as property hooks, asymmetric visibility, an updated DOM API, performance improvements, bug fixes, and general cleanup.', 'upgrade_now' => 'Upgrade to PHP 8.4 now!', 'property_hooks_title' => 'Property hooks', 'property_hooks_description' => 'Property hooks provide support for computed properties that can natively be understood by IDEs and static analysis tools, without needing to write docblock comments that might go out of sync. Furthermore, they allow reliable pre- or post-processing of values, without needing to check whether a matching getter or setter exists in the class.', 'asymmetric_visibility_title' => 'Asymmetric Visibility', 'asymmetric_visibility_description' => 'The scope to write to a property may now be controlled independently from the scope to read the property, reducing the need for boilerplate getter methods to expose a property’s value without allowing modification from the outside of a class.', 'deprecated_attribute_title' => '#[\Deprecated] Attribute', 'deprecated_attribute_description' => 'The new #[\Deprecated] attribute makes PHP’s existing deprecation mechanism available to user-defined functions, methods, and class constants.', 'dom_additions_html5_title' => 'New ext-dom features and HTML5 support', 'dom_additions_html5_description' => '

New DOM API that includes standards-compliant support for parsing HTML5 documents, fixes several long-standing compliance bugs in the behavior of the DOM functionality, and adds several functions to make working with documents more convenient.

The new DOM API is available within the Dom namespace. Documents using the new DOM API can be created using the Dom\HTMLDocument and Dom\XMLDocument classes.

', 'bcmath_title' => 'Object API for BCMath', 'bcmath_description' => '

New BcMath\Number object enables object-oriented usage and standard mathematical operators when working with arbitrary precision numbers.

These objects are immutable and implement the Stringable interface, so they can be used in string contexts like echo $num.

', 'new_array_find_title' => 'New array_*() functions', 'new_array_find_description' => 'New functions array_find(), array_find_key(), array_any(), and array_all() are available.', 'pdo_driver_specific_subclasses_title' => 'PDO driver specific subclasses', 'pdo_driver_specific_subclasses_description' => 'New subclasses Pdo\Dblib, Pdo\Firebird, Pdo\MySql, Pdo\Odbc, Pdo\Pgsql, and Pdo\Sqlite of PDO are available.', 'new_without_parentheses_title' => 'new MyClass()->method() without parentheses', 'new_without_parentheses_description' => 'Properties and methods of a newly instantiated object can now be accessed without wrapping the new expression in parentheses.', 'new_classes_title' => 'New Classes, Interfaces, and Functions', 'new_lazy_objects' => 'New Lazy Objects.', 'new_jit_implementation' => 'New JIT implementation based on IR Framework.', 'new_core_functions' => 'New request_parse_body() function.', 'new_bcmath_functions' => 'New bcceil(), bcdivmod(), bcfloor(), and bcround() functions.', 'new_round_modes' => 'New RoundingMode enum for round() with 4 new rounding modes TowardsZero, AwayFromZero, NegativeInfinity, and PositiveInfinity.', 'new_date_functions' => 'New DateTime::createFromTimestamp(), DateTime::getMicrosecond(), DateTime::setMicrosecond(), DateTimeImmutable::createFromTimestamp(), DateTimeImmutable::getMicrosecond(), and DateTimeImmutable::setMicrosecond() methods.', 'new_mb_functions' => 'New mb_trim(), mb_ltrim(), mb_rtrim(), mb_ucfirst(), and mb_lcfirst() functions.', 'new_pcntl_functions' => 'New pcntl_getcpu(), pcntl_getcpuaffinity(), pcntl_getqos_class(), pcntl_setns(), and pcntl_waitid() functions.', 'new_reflection_functions' => 'New ReflectionClassConstant::isDeprecated(), ReflectionGenerator::isClosed(), and ReflectionProperty::isDynamic() methods.', 'new_standard_functions' => 'New http_get_last_response_headers(), http_clear_last_response_headers(), and fpow() functions.', 'new_xml_functions' => 'New XMLReader::fromStream(), XMLReader::fromUri(), XMLReader::fromString(), XMLWriter::toStream(), XMLWriter::toUri(), and XMLWriter::toMemory() methods.', 'new_grapheme_function' => 'New grapheme_str_split() function.', 'bc_title' => 'Deprecations and backward compatibility breaks', 'bc_pecl' => 'The IMAP, OCI8, PDO_OCI, and pspell extensions have been unbundled and moved to PECL.', 'bc_nullable_parameter_types' => 'Implicitly nullable parameter types are now deprecated.', 'bc_classname' => 'Using _ as a class name is now deprecated.', 'bc_zero_raised_to_negative_number' => 'Raising zero to the power of a negative number is now deprecated.', 'bc_gmp' => 'GMP class is now final.', 'bc_round' => 'Passing invalid mode to round() throws ValueError.', 'bc_typed_constants' => 'Class constants from extensions date, intl, pdo, reflection, spl, sqlite, xmlreader are typed now.', 'bc_mysqli_constants' => 'MYSQLI_SET_CHARSET_DIR, MYSQLI_STMT_ATTR_PREFETCH_ROWS, MYSQLI_CURSOR_TYPE_FOR_UPDATE, MYSQLI_CURSOR_TYPE_SCROLLABLE, and MYSQLI_TYPE_INTERVAL constants have been removed.', 'bc_mysqli_functions' => 'mysqli_ping(), mysqli_kill(), mysqli_refresh() functions, mysqli::ping(), mysqli::kill(), mysqli::refresh() methods, and MYSQLI_REFRESH_* constants have been deprecated.', 'bc_standard' => 'stream_bucket_make_writeable() and stream_bucket_new() now return an instance of StreamBucket instead of stdClass.', 'bc_core' => 'exit() behavioral change.', 'bc_warnings' => 'E_STRICT constant has been deprecated.', 'footer_title' => 'Better performance, better syntax, improved type safety.', 'footer_description' => '

For source downloads of PHP 8.4 please visit the downloads page. Windows binaries can be found on the PHP for Windows site. The list of changes is recorded in the ChangeLog.

The migration guide is available in the PHP Manual. Please consult it for a detailed list of new features and backward-incompatible changes.

', ];