'PHP 8.3 is a major update of the PHP language. It contains many new features, such as explicit typing of class constants, deep-cloning of readonly properties and additions to the randomness functionality. As always it also includes performance improvements, bug fixes, and general cleanup.', 'documentation' => 'Doc', 'main_title' => 'Released!', 'main_subtitle' => 'PHP 8.3 is a major update of the PHP language.
It contains many new features, such as explicit typing of class constants, deep-cloning of readonly properties and additions to the randomness functionality. As always it also includes performance improvements, bug fixes, and general cleanup.', 'upgrade_now' => 'Upgrade to PHP 8.3 now!', 'readonly_title' => 'Deep-cloning of readonly properties', 'readonly_description' => 'readonly properties may now be modified once within the magic __clone method to enable deep-cloning of readonly properties.', 'json_validate_title' => 'New json_validate() function', 'json_validate_description' => 'json_validate() allows to check if a string is syntactically valid JSON, while being more efficient than json_decode().', 'typed_class_constants_title' => 'Typed class constants', 'override_title' => 'New #[\Override] attribute', 'override_description' => 'By adding the #[\Override] attribute to a method, PHP will ensure that a method with the same name exists in a parent class or in an implemented interface. Adding the attribute makes it clear that overriding a parent method is intentional and simplifies refactoring, because the removal of an overridden parent method will be detected.', 'randomizer_getbytesfromstring_title' => 'New Randomizer::getBytesFromString() method', 'randomizer_getbytesfromstring_description' => 'The Random Extension that was added in PHP 8.2 was extended by a new method to generate random strings consisting of specific bytes only. This method allows the developer to easily generate random identifiers, such as domain names, and numeric strings of arbitrary length.', 'randomizer_getfloat_nextfloat_title' => 'New Randomizer::getFloat() and Randomizer::nextFloat() methods', 'randomizer_getfloat_nextfloat_description' => '

Due to the limited precision and implicit rounding of floating point numbers, generating an unbiased float lying within a specific interval is non-trivial and the commonly used userland solutions may generate biased results or numbers outside the requested range.

The Randomizer was also extended with two methods to generate random floats in an unbiased fashion. The Randomizer::getFloat() method uses the γ-section algorithm that was published in Drawing Random Floating-Point Numbers from an Interval. Frédéric Goualard, ACM Trans. Model. Comput. Simul., 32:3, 2022.

', 'dynamic_class_constant_fetch_title' => 'Dynamic class constant fetch', 'command_line_linter_title' => 'Command line linter supports multiple files', 'command_line_linter_description' => '

The command line linter now accepts variadic input for filenames to lint

', 'new_classes_title' => 'New Classes, Interfaces, and Functions', 'new_dom' => 'New DOMElement::getAttributeNames(), DOMElement::insertAdjacentElement(), DOMElement::insertAdjacentText(), DOMElement::toggleAttribute(), DOMNode::contains(), DOMNode::getRootNode(), DOMNode::isEqualNode(), DOMNameSpaceNode::contains(), and DOMParentNode::replaceChildren() methods.', 'new_intl' => 'New IntlCalendar::setDate(), IntlCalendar::setDateTime(), IntlGregorianCalendar::createFromDate(), and IntlGregorianCalendar::createFromDateTime() methods.', 'new_ldap' => 'New ldap_connect_wallet(), and ldap_exop_sync() functions.', 'new_mb_str_pad' => 'New mb_str_pad() function.', 'new_posix' => 'New posix_sysconf(), posix_pathconf(), posix_fpathconf(), and posix_eaccess() functions.', 'new_reflection' => 'New ReflectionMethod::createFromMethodName() method.', 'new_socket' => 'New socket_atmark() function.', 'new_str' => 'New str_increment(), str_decrement(), and stream_context_set_options() functions.', 'new_ziparchive' => 'New ZipArchive::getArchiveFlag() method.', 'new_openssl_ec' => 'Support for generation EC keys with custom EC parameters in OpenSSL extension.', 'new_ini' => 'New INI setting zend.max_allowed_stack_size to set the maximum allowed stack size.', 'ini_fallback' => 'php.ini now supports fallback/default value syntax.', 'anonymous_readonly' => 'Anonymous classes can now be readonly.', 'bc_title' => 'Deprecations and backward compatibility breaks', 'bc_datetime' => 'More Appropriate Date/Time Exceptions.', 'bc_arrays' => 'Assigning a negative index n to an empty array will now make sure that the next index is n + 1 instead of 0.', 'bc_range' => 'Changes to the range() function.', 'bc_traits' => 'Changes in re-declaration of static properties in traits.', 'bc_umultipledecimalseparators' => 'The U_MULTIPLE_DECIMAL_SEPERATORS constant is deprecated in favor of U_MULTIPLE_DECIMAL_SEPARATORS.', 'bc_mtrand' => 'The MT_RAND_PHP Mt19937 variant is deprecated.', 'bc_reflection' => 'ReflectionClass::getStaticProperties() is no longer nullable.', 'bc_ini' => 'INI settings assert.active, assert.bail, assert.callback, assert.exception, and assert.warning have been deprecated.', 'bc_standard' => 'Calling get_class() and get_parent_class() without arguments are deprecated.', 'bc_sqlite3' => 'SQLite3: Default error mode set to exceptions.', 'footer_title' => 'Better performance, better syntax, improved type safety.', 'footer_description' => '

For source downloads of PHP 8.3 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.

', ];