{"id":342518,"date":"2022-12-13T15:00:13","date_gmt":"2022-12-13T15:00:13","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=342518"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=342518","title":{"rendered":"<span>\u0412\u044b\u0448\u0435\u043b PHP 8.2: \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u0433\u043b\u0430\u0432\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/37a\/e2d\/f84\/37ae2df84786cdf5325beef674fa2b91.jpeg\" width=\"850\" height=\"400\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/37a\/e2d\/f84\/37ae2df84786cdf5325beef674fa2b91.jpeg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u043c\u0435\u0441\u0442\u0435 \u0441 PHP-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438\u00a0\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u043e\u043c \u041c\u0430\u043a\u0430\u0440\u043e\u0432\u044b\u043c (<a class=\"mention\" href=\"\/users\/samdark\">@SamDark<\/a>), \u0412\u0430\u043b\u0435\u043d\u0442\u0438\u043d\u043e\u043c \u0423\u0434\u0430\u043b\u044c\u0446\u043e\u0432\u044b\u043c (<a class=\"mention\" href=\"\/users\/vudaltsov\">@vudaltsov<\/a>) \u0438 \u043d\u0430\u0441\u0442\u0430\u0432\u043d\u0438\u043a\u043e\u043c \u0425\u0435\u043a\u0441\u043b\u0435\u0442\u0430 \u043f\u043e PHP \u0412\u043b\u0430\u0434\u043b\u0435\u043d\u043e\u043c \u0413\u0438\u043b\u044f\u0437\u0435\u0442\u0434\u0438\u043d\u043e\u0432\u044b\u043c (<a href=\"https:\/\/github.com\/funkylen\">@funkylen<\/a>) \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f, \u043a\u0430\u043a\u0438\u0435 \u043d\u043e\u0432\u044b\u0435 \u0444\u0438\u0447\u0438 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0432 PHP 8.2, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b \u0438 \u043a\u0430\u043a\u0443\u044e \u0440\u043e\u043b\u044c \u0432 \u043d\u0438\u0445 \u0441\u044b\u0433\u0440\u0430\u043b \u043f\u0440\u043e\u0435\u043a\u0442 \u0420HP Foundation.<\/p>\n<blockquote>\n<p>\u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u2014 \u0441\u0430\u043c\u043c\u0430\u0440\u0438 \u0441\u0442\u0440\u0438\u043c\u0430 YouTube-\u043a\u0430\u043d\u0430\u043b\u0430 PHP Point.<\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, <a href=\"https:\/\/forms.gle\/4DU4rzQu4cHEhkCj7\"><strong>\u0435\u0436\u0435\u0433\u043e\u0434\u043d\u044b\u0439 \u043e\u043f\u0440\u043e\u0441<\/strong><\/a> \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0433\u043e PHP-\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0441 \u0438\u0442\u043e\u0433\u0430\u043c\u0438 \u0433\u043e\u0434\u0430 \u0437\u0430\u043f\u0443\u0449\u0435\u043d! \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u043c\u0441\u044f \u0432 \u043a\u043e\u043d\u0446\u0435 \u044f\u043d\u0432\u0430\u0440\u044f.<\/p>\n<\/blockquote>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/6398867c248bff9a8b087819\" data-style=\"\" id=\"6398867c248bff9a8b087819\" width=\"\"><\/div>\n<h2>\u0413\u043b\u0430\u0432\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 PHP 8.2<\/h2>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/bfe\/f80\/765\/bfef8076585160f6c1fc953b36b6ef45.jpeg\" width=\"3042\" height=\"1043\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bfe\/f80\/765\/bfef8076585160f6c1fc953b36b6ef45.jpeg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<h2>Readonly-\u043a\u043b\u0430\u0441\u0441\u044b<\/h2>\n<p>\u041f\u043e\u043b\u044f\u00a0<code>readonly<\/code>\u00a0\u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0435\u0449\u0435 \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 8.2. \u0420\u0430\u043d\u044c\u0448\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043d\u0438\u0445 \u043a\u043e\u0434 \u0438 \u0447\u0438\u0442\u0430\u0442\u044c \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u0447\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0435 \u043f\u043e\u043b\u0435 \u2014 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u00a0<a href=\"https:\/\/wiki.php.net\/rfc\/readonly_classes\"><u>\u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u043a\u043b\u0430\u0441\u0441<\/u><\/a>\u00a0\u043a\u0430\u043a\u00a0<code>readonly<\/code>.<\/p>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043a\u043e\u0434 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 PHP:<\/p>\n<pre><code class=\"php\">class BlogData {     public readonly string $title;      public readonly Status $status;      public function __construct(string $title, Status $status)     {         $this->title = $title;         $this->status = $status;     } }<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434 \u0432 PHP 8.2:<\/p>\n<pre><code class=\"php\">readonly class BlogData {     public string $title;      public Status $status;      public function __construct(string $title, Status $status)     {         $this->title = $title;         $this->status = $status;     } }<\/code><\/pre>\n<p>\u041d\u043e \u0443 \u0444\u0438\u0447\u0438 \u0435\u0441\u0442\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ol>\n<li>\n<p><code>Readonly<\/code>-\u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0441 \u043d\u0435\u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u043a\u0436\u0435\u00a0<code>readonly<\/code>-\u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0441\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043c\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u043c \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0441\u0442\u0430\u0440\u043e\u0433\u043e\u00a0<code>readonly<\/code>-\u043a\u043b\u0430\u0441\u0441\u0430, \u043d\u043e\u0432\u044b\u0439 \u0442\u043e\u0436\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c Readonly.<\/p>\n<\/li>\n<\/ol>\n<h2>\u0422\u0438\u043f\u044b \u0432 \u0432\u0438\u0434\u0435 \u0434\u0438\u0437\u044a\u044e\u043d\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b (\u0414\u041d\u0424)<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u0438\u043f\u00a0<code>mixed<\/code>\u00a0\u0434\u043b\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043c\u0435\u0442\u043e\u0434\u0430\u0445, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u00a0<a href=\"https:\/\/wiki.php.net\/rfc\/dnf_types\"><u>\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0442\u0438\u043f\u044b<\/u><\/a>\u00a0\u0447\u0435\u0440\u0435\u0437 \u0430\u043c\u043f\u0435\u0440\u0441\u0430\u043d\u0434.<\/p>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043a\u043e\u0434 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 PHP:<\/p>\n<pre><code class=\"php\">class Foo {     public function bar(mixed $entity) {         if ((($entity instanceof A) &amp;&amp; ($entity instanceof B)) || ($entity === null)) {             return $entity;         }          throw new Exception('Invalid entity');     } }<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434 \u0432 PHP 8.2:<\/p>\n<pre><code class=\"php\">class Foo {     public function bar((A&amp;B)|null $entity) {         return $entity;     } }<\/code><\/pre>\n<p>\u041f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043e\u0442 \u043c\u0435\u043d\u044f: \u0431\u0443\u0434\u044c\u0442\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b \u0441 \u044d\u0442\u043e\u0439 \u0444\u0438\u0447\u0435\u0439. \u041e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u0432 \u043e\u0434\u0438\u043d. \u0415\u0441\u043b\u0438 \u0431\u044b \u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0442\u043e \u0442\u0430\u043a \u043d\u0435 \u0434\u0435\u043b\u0430\u043b \u0431\u044b. \u0410 \u0432\u043e\u0442 \u0432\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u0445 \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043a\u0441\u0442\u0430\u0442\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0438\u043d\u043e\u0433\u0434\u0430, \u0440\u0430\u0434\u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0439 API, \u043c\u044b \u0441\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0436\u0435\u0440\u0442\u0432\u0443\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u043e\u0434\u0445\u043e\u0434 \u0441\u00a0<code>mixed<\/code>-\u0442\u0438\u043f\u0430\u043c\u0438 \u0432 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0435.<\/p>\n<h2>\u0421\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0438\u043f\u044b null, false \u0438 true<\/h2>\n<p>\u042d\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0435\u0434\u0438\u043d\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043f\u0440\u0438\u043d\u044f\u043b\u0430 \u0432\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 PHP, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 \u044f\u0434\u0440\u0435 PHP \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b, \u043a\u043b\u0430\u0441\u0441\u044b \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u00a0<code>false<\/code>\u00a0\u0438\u043b\u0438\u00a0<code>true<\/code>.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043c\u0435\u0442\u043e\u0434 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u00a0<code>false<\/code>, \u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c\u00a0<a href=\"https:\/\/wiki.php.net\/rfc\/null-false-standalone-types\"><u>\u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c<\/u><\/a>, \u0447\u0442\u043e \u043e\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u00a0<code>true<\/code>\u00a0\u0438\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0418\u043b\u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442,\u00a0<code>null<\/code>\u00a0\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0438\u043b\u0438\u00a0<code>false<\/code>\u00a0\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0424\u0438\u0447\u0430 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u044f\u0437\u044b\u043a \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u043e\u0436\u0435.<\/p>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043a\u043e\u0434 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 PHP:<\/p>\n<pre><code class=\"php\">class Falsy {     public function almostFalse(): bool { \/* ... *\/ *}      public function almostTrue(): bool { \/* ... *\/ *}      public function almostNull(): string|null { \/* ... *\/ *} }<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434 \u0432 PHP 8.2:<\/p>\n<pre><code class=\"php\">class Falsy {     public function alwaysFalse(): false { \/* ... *\/ *}      public function alwaysTrue(): true { \/* ... *\/ *}      public function alwaysNull(): null { \/* ... *\/ *} }<\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c \u00abRandom\u00bb<\/h2>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/rng_extension\"><u>Random<\/u><\/a>\u00a0\u2014 \u044d\u0442\u043e \u0446\u0435\u043b\u044b\u0439 \u043f\u0430\u043a \u0440\u0430\u0437\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0444\u0438\u0447\u0438:<\/p>\n<ol>\n<li>\n<p>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 API<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0439 \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u043d\u0441\u0442\u0430\u043d\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c n-\u0448\u0442\u0443\u043a \u043f\u0441\u0435\u0432\u0434\u043e\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0443\u0442\u0441\u044f. \u0421\u0442\u0430\u043b\u043e \u0431\u043e\u043b\u0435\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p>Mersenne twister \u0437\u0430\u043c\u0435\u043d\u0435\u043d \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Engine. \u0420\u0430\u043d\u044c\u0448\u0435\u00a0<code>mt_rand()<\/code>\u00a0\u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041e\u043d \u0431\u044b\u043b \u043d\u0443\u0436\u0435\u043d \u043d\u0435 \u0434\u043b\u044f \u0432\u0441\u044f\u043a\u0438\u0445 \u043a\u0440\u0438\u043f\u0442\u043e-\u0444\u0438\u0447, \u0430 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435.\u00a0<code>mt_rand()<\/code>\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430\u0440\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u0431\u044b\u043b\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e. \u0422\u0435\u043f\u0435\u0440\u044c \u0435\u0433\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0438 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Engine, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434 \u0432 PHP 8.2:<\/p>\n<pre><code class=\"php\">use Random\\Engine\\Xoshiro256StarStar; use Random\\Randomizer;  $blueprintRng = new Xoshiro256StarStar(     hash('sha256', \"Example seed that is converted to a 256 Bit string via SHA-256\", true) );  $fibers = []; for ($i = 0; $i &lt; 8; $i++) {     $fiberRng = clone $blueprintRng;     \/\/ Xoshiro256**'s 'jump()' method moves the blueprint ahead 2**128 steps, as if calling     \/\/ 'generate()' 2**128 times, giving the Fiber 2**128 unique values without needing to reseed.     $blueprintRng->jump();<\/code><\/pre>\n<h2>\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432 \u0442\u0440\u0435\u0439\u0442\u0430\u0445<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e\u00a0<a href=\"https:\/\/wiki.php.net\/rfc\/constants_in_traits\"><u>\u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0440\u0435\u0439\u0442\u043e\u0432<\/u><\/a>. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u0447\u0438 \u2014 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 \u0438\u043c\u044f \u0442\u0440\u0435\u0439\u0442\u0430, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u044d\u0442\u043e\u0442 \u0442\u0440\u0435\u0439\u0442.<\/p>\n<p>\u041e\u0447\u0435\u043d\u044c \u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434. \u0422\u0440\u0435\u0439\u0442 \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435 \u2014 \u044d\u0442\u043e \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442. \u041a\u043e\u043f\u0438\u043f\u0430\u0441\u0442 \u2014 \u0448\u0442\u0443\u043a\u0430 \u043e\u043f\u0430\u0441\u043d\u0430\u044f, \u043d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f (\u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u00abdon&#8217;t repeat yourself\u00bb). \u0418 \u0442\u0440\u0435\u0439\u0442 \u2014 \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u0441\u0430\u043c\u044b\u0445 \u043d\u0435\u0438\u043d\u0432\u0430\u0437\u0438\u0432\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u043e\u0442\u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0442\u044c.<\/p>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434 \u0432 PHP 8.2:<\/p>\n<pre><code class=\"php\">trait Foo {     public const CONSTANT = 1; }  class Bar {     use Foo; }  var_dump(Bar::CONSTANT); \/\/ 1 var_dump(Foo::CONSTANT); \/\/ Error<\/code><\/pre>\n<h2>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u043c\u0438<\/h2>\n<p>\u0412 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 PHP \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043d\u0435 \u043e\u0431\u044a\u044f\u0432\u0438\u043b\u0438 \u0440\u0430\u043d\u0435\u0435, \u0438 \u044d\u0442\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u043f\u043e\u0441\u043b\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c\u00a0<a href=\"https:\/\/wiki.php.net\/rfc\/deprecate_dynamic_properties\"><u>\u0442\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f<\/u><\/a>\u00a0\u2014 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f\u00a0<code>Deprecation notice<\/code>. \u041d\u043e \u0435\u0441\u043b\u0438 \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e, \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u0435\u0441\u043b\u0438 \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0435\u0439\u00a0<code>#[\\AllowDynamicProperties]<\/code>. \u0412 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430\u0445\u00a0<code>stdClass<\/code>\u00a0\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043a\u043e\u0434 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 PHP:<\/p>\n<pre><code class=\"php\">class User {     public $name; }  $user = new User(); $user->last_name = 'Doe';  $user = new stdClass(); $user->last_name = 'Doe';<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434 \u0432 PHP 8.2:<\/p>\n<pre><code class=\"php\">class User {     public $name; }  $user = new User(); $user->last_name = 'Doe'; \/\/ Deprecated notice  $user = new stdClass(); $user->last_name = 'Doe'; \/\/ Still allowed<\/code><\/pre>\n<h2>#[\\SensitiveParameter]<\/h2>\n<p>\u042d\u0442\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f, \u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043a\u043b\u0430\u0441\u0441\u043d\u0430\u044f \u0444\u0438\u0447\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u0435\u043b\u044c\u043a\u043e\u043c \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0430\u043d\u043e\u043d\u0441\u0435.<\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u043c\u0435\u0442\u043e\u0434\u0430\u0445 \u0442\u0435\u043f\u0435\u0440\u044c\u00a0<a href=\"https:\/\/www.php.net\/manual\/ru\/class.sensitive-parameter.php\"><u>\u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u0442\u044c<\/u><\/a>\u00a0\u043a\u0430\u043a\u00a0<code>#[\\SensitiveParameter]<\/code>. \u041d\u0438\u0436\u0435 \u0432 \u043a\u043e\u0434\u0435 \u0442\u0430\u043a \u043e\u0442\u043c\u0435\u0447\u0435\u043d \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u00a0<code>$secret<\/code>, \u0438 \u0432 \u043b\u043e\u0433\u0430\u0445 \u0432\u043c\u0435\u0441\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u00a0<code>secret<\/code>\u00a0\u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e\u00a0<code>(Object(SensitiveParameterValue)<\/code>.<\/p>\n<pre><code class=\"php\">function sensitiveParametersWithAttribute(     #[\\SensitiveParameter]     string $secret,     string $normal ) {     throw new Exception('Error!'); }<\/code><\/pre>\n<pre><code class=\"php\">Exception: Error! in example.php:15 Stack trace: #0 example.php(25): sensitiveParametersWithAttribute(Object(SensitiveParameterValue), 'normal') #1 {main}<\/code><\/pre>\n<p>\u0421\u0447\u0438\u0442\u0430\u044e \u044d\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u044b\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u043a\u0430\u0442\u044c \u0432\u0441\u044f\u043a\u0438\u0435 \u043a\u043b\u044e\u0447\u0438 \u043e\u0442 API, \u043f\u0430\u0440\u043e\u043b\u0438 \u043e\u0442 \u0431\u0430\u0437\u044b. \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 PHP \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0435\u0434\u0438\u043d\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0430 \u0437\u0430 \u044d\u0442\u0443 \u0444\u0438\u0447\u0443.<\/p>\n<h2>\u041a\u0430\u043a\u0438\u0435 \u0435\u0449\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0438<\/h2>\n<h4>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u00a0enum\u00a0\u0432 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u0445<\/h4>\n<p>\u0420\u0430\u043d\u044c\u0448\u0435, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u00a0<code>enum<\/code>, \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u042d\u0442\u043e \u0431\u044b\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u043e:\u00a0<code>enum<\/code>\u00a0\u0435\u0441\u0442\u044c, \u0430 \u0432 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u044b\u043b\u043e \u0438\u0437 \u043d\u0438\u0445 \u0447\u0442\u043e-\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e: \u043d\u043e\u0432\u0430\u044f \u0444\u0438\u0447\u0430 \u0443\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0441\u044c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441. \u041a\u043b\u0430\u0441\u0441\u043d\u043e, \u0447\u0442\u043e \u044f\u0437\u044b\u043a \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u0435\u0442 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043a\u043e\u043d\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438.<\/p>\n<pre><code class=\"php\">const C = [self::B->value => self::B];<\/code><\/pre>\n<h4>iterator_()\u00a0+\u00a0iterables<\/h4>\n<p><em>\u0422\u0435\u043f\u0435\u0440\u044c\u00a0<\/em><a href=\"https:\/\/www.php.net\/manual\/ru\/migration82.other-changes.php#migration82.other-changes.core\"><em><u>\u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c<\/u><\/em><\/a><em>\u00a0\u0432 \u043c\u0435\u0442\u043e\u0434\u044b\u00a0<\/em><code>iterator_()<\/code>\u00a0\u0442\u0438\u043f\u00a0<code>\\Traversables<\/code>. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0440\u0430\u043d\u044c\u0448\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c \u0442\u0438\u043f\u0430\u00a0<code>\\Traversable<\/code>, \u0438 \u0435\u0441\u043b\u0438 \u0434\u0430, \u0442\u043e \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0435\u0433\u043e \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0442\u044c. \u0412 PHP 8.2 \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u044d\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u0447\u0442\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430 \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0435\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c \u0438 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c.<\/p>\n<h4>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0430 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f<\/h4>\n<ul>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c,\u00a0<a href=\"https:\/\/www.php.net\/manual\/ru\/reflectionfunction.isanonymous.php\"><u>\u0430\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0439 \u043b\u0438 \u043c\u0435\u0442\u043e\u0434<\/u><\/a>\u00a0\u2014\u00a0<code>ReflectionFunction::isAnonymous()<\/code><\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c,\u00a0<a href=\"https:\/\/www.php.net\/manual\/ru\/reflectionmethod.hasprototype.php\"><u>\u0435\u0441\u0442\u044c \u043b\u0438 \u0443 \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f<\/u><\/a>\u00a0\u2014\u00a0<code>ReflectionMethod::hasPrototype()<\/code><\/p>\n<\/li>\n<\/ul>\n<h4>\u041d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0memory_reset_peak_usage<\/h4>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<a href=\"https:\/\/www.php.net\/manual\/ru\/function.memory-reset-peak-usage.php\"><u>\u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u044e\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443<\/u><\/a>\u00a0\u043f\u043e \u043f\u0438\u043a\u043e\u0432\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u043f\u0430\u043c\u044f\u0442\u0438. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f EventLoop \u043d\u0430 PHP, Roadrunner \u0438 Swoole \u2014 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0441\u043a\u0438\u043d\u0443\u0442\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u043c\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0438 \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u044c \u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0448\u043b\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043d\u0430 \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441.<\/p>\n<h4>\u0427\u0442\u043e \u043f\u0440\u0438\u0437\u043d\u0430\u043b\u0438 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u043c \u0438\u043b\u0438 \u0443\u0431\u0440\u0430\u043b\u0438<\/h4>\n<ul>\n<li>\n<p>\u0418\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044f \u0432 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u0432\u0438\u0434\u0430\u00a0<code>${}<\/code><\/p>\n<\/li>\n<li>\n<p>\u041d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>utf8_encode<\/code>\u00a0\u0438\u00a0<code>utf8_decode<\/code><\/p>\n<\/li>\n<li>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>strtolower<\/code>\u00a0\u0438\u00a0<code>strtoupper<\/code>\u00a0\u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442 \u043b\u043e\u043a\u0430\u043b\u044c \u2014 \u044d\u0442\u043e \u043a\u0440\u0443\u0442\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u0438 PHP, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432 \u0434\u0432\u0443\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 Linux, \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u0438\u0437-\u0437\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0439 \u043b\u043e\u043a\u0430\u043b\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0431\u0440\u0430\u043b\u0438 \u043c\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432\u00a0<code>callable<\/code>:<\/p>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p><code>\u201cself::method\u201d<\/code><\/p>\n<\/li>\n<li>\n<p><code>\u201cparent::method\u201d<\/code><\/p>\n<\/li>\n<li>\n<p><code>\u201cstatic::method\u201d<\/code><\/p>\n<\/li>\n<li>\n<p><code>[\u201cself\u201d, \u201cmethod\u201d]<\/code><\/p>\n<\/li>\n<li>\n<p><code>[\u201cparent\u201d, \u201cmethod\u201d]<\/code><\/p>\n<\/li>\n<li>\n<p><code>[\u201cstatic\u201d, \u201cmethod\u201d]<\/code><\/p>\n<\/li>\n<li>\n<p><code>[\u201cFoo\u201d, \u201cBar::Method\u201d]<\/code><\/p>\n<\/li>\n<li>\n<p><code>[new Foo, \u201cBar::Method\u201d]<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u043e\u0435 \u043c\u043d\u0435\u043d\u0438\u0435 \u2014 \u043d\u0430 PHP 8.2 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e \u0441\u0442\u043e\u0438\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u0445\u043e\u0442\u044f \u0431\u044b \u0438\u0437-\u0437\u0430 \u043a\u0440\u0443\u0442\u044b\u0445 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430. \u041e\u043d \u0432\u0441\u0435 \u0435\u0449\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u043e\u0434 \u0431\u043e\u043b\u0435\u0435 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c. \u0422\u0430\u043a\u0436\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u043e\u0444\u0438\u043a\u0441\u0438\u043b\u0438 \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u0435\u043b\u043a\u0438\u0435 \u0431\u0430\u0433\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043d\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b\u0438, \u043d\u043e \u0438\u0445 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e.<\/p>\n<h2>\u041a\u0430\u043a\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f PHP 8.2 \u0435\u0449\u0435 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435<\/h2>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/59a\/391\/f90\/59a391f9091e06b9176bcec904ddbdd4.jpeg\" width=\"3042\" height=\"1043\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/59a\/391\/f90\/59a391f9091e06b9176bcec904ddbdd4.jpeg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u0447\u0438\u0442\u0430\u044e\u0442, \u0447\u0442\u043e \u0432 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e PHP \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0432 \u0420HP 8.2 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u0430\u043f\u043f\u043e\u0440\u0442\u043d\u044b\u0445 \u0432\u0435\u0449\u0435\u0439: \u043a\u043e\u0434 \u0432\u044b\u0447\u0438\u0449\u0430\u043b\u0438, \u0438\u0437 \u043d\u0435\u0433\u043e \u0447\u0442\u043e-\u0442\u043e \u0443\u0431\u0438\u0440\u0430\u043b\u0438. \u041a\u0430\u0436\u0434\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0432\u043e\u0434\u0438\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0444\u0438\u0447\u0430\u0445. \u0414\u0430 \u0438 \u0432\u0440\u044f\u0434 \u043b\u0438 \u0432\u0441\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043a\u0430\u043a\u0438\u0435 \u043a\u0443\u0441\u043a\u0438 \u043a\u043e\u0434\u0430 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043b\u0438. \u0422\u0430\u043a \u0447\u0442\u043e \u043f\u043e \u043e\u0431\u044a\u0435\u043c\u0443 \u0440\u0430\u0431\u043e\u0442\u044b \u0440\u0435\u043b\u0438\u0437 8.2 \u043d\u0435 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0440\u0435\u043b\u0438\u0437\u043e\u0432. \u041f\u0440\u043e\u0441\u0442\u043e \u0432 \u043d\u0435\u043c \u0447\u0443\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435 \u0444\u0438\u0447.<\/p>\n<p>\u0411\u043e\u043b\u044c\u0448\u0438\u0435 \u0443\u0441\u0438\u043b\u0438\u044f \u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 8.2 \u043f\u0440\u0438\u043b\u043e\u0436\u0438\u043b\u0438 \u0440\u0435\u0431\u044f\u0442\u0430 \u0438\u0437 PHP Foundation \u2014 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0444\u0438\u043d\u0430\u043d\u0441\u0438\u0440\u0443\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u0438\u0431\u044c\u044e\u0442\u0438\u0442\u044c \u0432 PHP.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/d39\/057\/e50\/d39057e50b0766346a8153b9caffd1e1.jpeg\" width=\"1460\" height=\"500\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d39\/057\/e50\/d39057e50b0766346a8153b9caffd1e1.jpeg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>PHP Foundation \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043c\u043d\u043e\u0433\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 JetBrains, Automattic, Laravel. \u041f\u0440\u043e\u0435\u043a\u0442 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 22 \u043d\u043e\u044f\u0431\u0440\u044f 2021 \u0433\u043e\u0434\u0430, \u0438 \u0437\u0430 \u0433\u043e\u0434 \u043a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u0432 \u0438\u0437 \u0434\u0435\u0441\u044f\u0442\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432-\u0434\u043e\u0431\u0440\u043e\u0432\u043e\u043b\u044c\u0446\u0435\u0432 \u0438 \u0448\u0435\u0441\u0442\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0432\u043d\u0435\u0441\u043b\u0438 \u043f\u043e\u0447\u0442\u0438 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u0432 \u044f\u0434\u0440\u043e \u044f\u0437\u044b\u043a\u0430 PHP \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0412 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u044f\u0437\u044b\u043a\u0430 PHP Foundation \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044e \u0432 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u0432\u0438\u0434\u0430\u00a0<code>${}<\/code>,\u00a0<code>readonly<\/code>-\u043a\u043b\u0430\u0441\u0441\u044b, \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0438\u043f\u044b\u00a0<code>null<\/code>,\u00a0<code>false<\/code>\u00a0\u0438\u00a0<code>true<\/code>, \u0442\u0438\u043f\u00a0<code>true<\/code>, \u0442\u0438\u043f\u044b \u0432 \u0432\u0438\u0434\u0435 \u0434\u0438\u0437\u044a\u044e\u043d\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u0432 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445.<\/p>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e PHP 8.2 \u0435\u0449\u0435 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435, \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a PHP Foundation \u0414\u0436\u043e\u0440\u0434\u0436 \u041f. \u0411\u0430\u043d\u044c\u044f\u0440\u0434 \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u0432 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445. \u0412\u043c\u0435\u0441\u0442\u0435 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u043e\u043d \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0435\u0442 \u044d\u0442\u0438 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/auto-implement_stringable_for_string_backed_enums\"><u>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0434\u043b\u044f enum Stringable<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/asymmetric-visibility\"><u>\u0410\u0441\u0441\u0438\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u0430\u044f \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/dynamic_class_constant_fetch\"><u>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u0430<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/datetime-exceptions\"><u>\u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 Date\/Time<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/readonly_amendments\"><u>\u0414\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u043e Readonly<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/arbitrary_static_variable_initializers\"><u>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u043c\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445<\/u><\/a>.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043c\u043e\u0447\u044c\u00a0<a href=\"https:\/\/github.com\/php\/doc-en\/issues\/1803\"><u>\u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/u><\/a>\u00a0\u043c\u043e\u0436\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0430\u0441 \u2014\u00a0\u044d\u0442\u043e, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f, good first issue (\u043d\u0435\u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434 \u0441\u0438\u043b\u0443 \u043d\u043e\u0432\u0438\u0447\u043a\u0430\u043c).<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 PHP Foundation \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0432\u044b\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u043d\u0430 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u00a0<a href=\"https:\/\/wiki.php.net\/rfc\/deprecations_php_8_3\"><u>\u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0440\u0435\u043b\u0438\u0437\u0435 PHP 8.3<\/u><\/a>.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/hexlet\/blog\/705194\/\"> https:\/\/habr.com\/ru\/company\/hexlet\/blog\/705194\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u043c\u0435\u0441\u0442\u0435 \u0441 PHP-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438\u00a0\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u043e\u043c \u041c\u0430\u043a\u0430\u0440\u043e\u0432\u044b\u043c (<a class=\"mention\" href=\"\/users\/samdark\">@SamDark<\/a>), \u0412\u0430\u043b\u0435\u043d\u0442\u0438\u043d\u043e\u043c \u0423\u0434\u0430\u043b\u044c\u0446\u043e\u0432\u044b\u043c (<a class=\"mention\" href=\"\/users\/vudaltsov\">@vudaltsov<\/a>) \u0438 \u043d\u0430\u0441\u0442\u0430\u0432\u043d\u0438\u043a\u043e\u043c \u0425\u0435\u043a\u0441\u043b\u0435\u0442\u0430 \u043f\u043e PHP \u0412\u043b\u0430\u0434\u043b\u0435\u043d\u043e\u043c \u0413\u0438\u043b\u044f\u0437\u0435\u0442\u0434\u0438\u043d\u043e\u0432\u044b\u043c (<a href=\"https:\/\/github.com\/funkylen\">@funkylen<\/a>) \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f, \u043a\u0430\u043a\u0438\u0435 \u043d\u043e\u0432\u044b\u0435 \u0444\u0438\u0447\u0438 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0432 PHP 8.2, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b \u0438 \u043a\u0430\u043a\u0443\u044e \u0440\u043e\u043b\u044c \u0432 \u043d\u0438\u0445 \u0441\u044b\u0433\u0440\u0430\u043b \u043f\u0440\u043e\u0435\u043a\u0442 \u0420HP Foundation.<\/p>\n<blockquote>\n<p>\u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u2014 \u0441\u0430\u043c\u043c\u0430\u0440\u0438 \u0441\u0442\u0440\u0438\u043c\u0430 YouTube-\u043a\u0430\u043d\u0430\u043b\u0430 PHP Point.<\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, <a href=\"https:\/\/forms.gle\/4DU4rzQu4cHEhkCj7\"><strong>\u0435\u0436\u0435\u0433\u043e\u0434\u043d\u044b\u0439 \u043e\u043f\u0440\u043e\u0441<\/strong><\/a> \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0433\u043e PHP-\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0441 \u0438\u0442\u043e\u0433\u0430\u043c\u0438 \u0433\u043e\u0434\u0430 \u0437\u0430\u043f\u0443\u0449\u0435\u043d! \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u043c\u0441\u044f \u0432 \u043a\u043e\u043d\u0446\u0435 \u044f\u043d\u0432\u0430\u0440\u044f.<\/p>\n<\/blockquote>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/6398867c248bff9a8b087819\" data-style=\"\" id=\"6398867c248bff9a8b087819\" width=\"\"><\/div>\n<h2>\u0413\u043b\u0430\u0432\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 PHP 8.2<\/h2>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>Readonly-\u043a\u043b\u0430\u0441\u0441\u044b<\/h2>\n<p>\u041f\u043e\u043b\u044f\u00a0<code>readonly<\/code>\u00a0\u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0435\u0449\u0435 \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 8.2. \u0420\u0430\u043d\u044c\u0448\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043d\u0438\u0445 \u043a\u043e\u0434 \u0438 \u0447\u0438\u0442\u0430\u0442\u044c \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u0447\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0435 \u043f\u043e\u043b\u0435 \u2014 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u00a0<a href=\"https:\/\/wiki.php.net\/rfc\/readonly_classes\"><u>\u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u043a\u043b\u0430\u0441\u0441<\/u><\/a>\u00a0\u043a\u0430\u043a\u00a0<code>readonly<\/code>.<\/p>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043a\u043e\u0434 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 PHP:<\/p>\n<pre><code class=\"php\">class BlogData {     public readonly string $title;      public readonly Status $status;      public function __construct(string $title, Status $status)     {         $this->title = $title;         $this->status = $status;     } }<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434 \u0432 PHP 8.2:<\/p>\n<pre><code class=\"php\">readonly class BlogData {     public string $title;      public Status $status;      public function __construct(string $title, Status $status)     {         $this->title = $title;         $this->status = $status;     } }<\/code><\/pre>\n<p>\u041d\u043e \u0443 \u0444\u0438\u0447\u0438 \u0435\u0441\u0442\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ol>\n<li>\n<p><code>Readonly<\/code>-\u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0441 \u043d\u0435\u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u043a\u0436\u0435\u00a0<code>readonly<\/code>-\u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0441\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043c\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u043c \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0441\u0442\u0430\u0440\u043e\u0433\u043e\u00a0<code>readonly<\/code>-\u043a\u043b\u0430\u0441\u0441\u0430, \u043d\u043e\u0432\u044b\u0439 \u0442\u043e\u0436\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c Readonly.<\/p>\n<\/li>\n<\/ol>\n<h2>\u0422\u0438\u043f\u044b \u0432 \u0432\u0438\u0434\u0435 \u0434\u0438\u0437\u044a\u044e\u043d\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b (\u0414\u041d\u0424)<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u0438\u043f\u00a0<code>mixed<\/code>\u00a0\u0434\u043b\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043c\u0435\u0442\u043e\u0434\u0430\u0445, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u00a0<a href=\"https:\/\/wiki.php.net\/rfc\/dnf_types\"><u>\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0442\u0438\u043f\u044b<\/u><\/a>\u00a0\u0447\u0435\u0440\u0435\u0437 \u0430\u043c\u043f\u0435\u0440\u0441\u0430\u043d\u0434.<\/p>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043a\u043e\u0434 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 PHP:<\/p>\n<pre><code class=\"php\">class Foo {     public function bar(mixed $entity) {         if ((($entity instanceof A) &amp;&amp; ($entity instanceof B)) || ($entity === null)) {             return $entity;         }          throw new Exception('Invalid entity');     } }<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434 \u0432 PHP 8.2:<\/p>\n<pre><code class=\"php\">class Foo {     public function bar((A&amp;B)|null $entity) {         return $entity;     } }<\/code><\/pre>\n<p>\u041f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043e\u0442 \u043c\u0435\u043d\u044f: \u0431\u0443\u0434\u044c\u0442\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b \u0441 \u044d\u0442\u043e\u0439 \u0444\u0438\u0447\u0435\u0439. \u041e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u0432 \u043e\u0434\u0438\u043d. \u0415\u0441\u043b\u0438 \u0431\u044b \u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0442\u043e \u0442\u0430\u043a \u043d\u0435 \u0434\u0435\u043b\u0430\u043b \u0431\u044b. \u0410 \u0432\u043e\u0442 \u0432\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u0445 \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043a\u0441\u0442\u0430\u0442\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0438\u043d\u043e\u0433\u0434\u0430, \u0440\u0430\u0434\u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0439 API, \u043c\u044b \u0441\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0436\u0435\u0440\u0442\u0432\u0443\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u043e\u0434\u0445\u043e\u0434 \u0441\u00a0<code>mixed<\/code>-\u0442\u0438\u043f\u0430\u043c\u0438 \u0432 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0435.<\/p>\n<h2>\u0421\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0438\u043f\u044b null, false \u0438 true<\/h2>\n<p>\u042d\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0435\u0434\u0438\u043d\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043f\u0440\u0438\u043d\u044f\u043b\u0430 \u0432\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 PHP, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 \u044f\u0434\u0440\u0435 PHP \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b, \u043a\u043b\u0430\u0441\u0441\u044b \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u00a0<code>false<\/code>\u00a0\u0438\u043b\u0438\u00a0<code>true<\/code>.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043c\u0435\u0442\u043e\u0434 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u00a0<code>false<\/code>, \u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c\u00a0<a href=\"https:\/\/wiki.php.net\/rfc\/null-false-standalone-types\"><u>\u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c<\/u><\/a>, \u0447\u0442\u043e \u043e\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u00a0<code>true<\/code>\u00a0\u0438\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0418\u043b\u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442,\u00a0<code>null<\/code>\u00a0\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0438\u043b\u0438\u00a0<code>false<\/code>\u00a0\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0424\u0438\u0447\u0430 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u044f\u0437\u044b\u043a \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u043e\u0436\u0435.<\/p>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043a\u043e\u0434 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 PHP:<\/p>\n<pre><code class=\"php\">class Falsy {     public function almostFalse(): bool { \/* ... *\/ *}      public function almostTrue(): bool { \/* ... *\/ *}      public function almostNull(): string|null { \/* ... *\/ *} }<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434 \u0432 PHP 8.2:<\/p>\n<pre><code class=\"php\">class Falsy {     public function alwaysFalse(): false { \/* ... *\/ *}      public function alwaysTrue(): true { \/* ... *\/ *}      public function alwaysNull(): null { \/* ... *\/ *} }<\/code><\/pre>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c \u00abRandom\u00bb<\/h2>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/rng_extension\"><u>Random<\/u><\/a>\u00a0\u2014 \u044d\u0442\u043e \u0446\u0435\u043b\u044b\u0439 \u043f\u0430\u043a \u0440\u0430\u0437\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0444\u0438\u0447\u0438:<\/p>\n<ol>\n<li>\n<p>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 API<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0439 \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u043d\u0441\u0442\u0430\u043d\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c n-\u0448\u0442\u0443\u043a \u043f\u0441\u0435\u0432\u0434\u043e\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0443\u0442\u0441\u044f. \u0421\u0442\u0430\u043b\u043e \u0431\u043e\u043b\u0435\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p>Mersenne twister \u0437\u0430\u043c\u0435\u043d\u0435\u043d \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Engine. \u0420\u0430\u043d\u044c\u0448\u0435\u00a0<code>mt_rand()<\/code>\u00a0\u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041e\u043d \u0431\u044b\u043b \u043d\u0443\u0436\u0435\u043d \u043d\u0435 \u0434\u043b\u044f \u0432\u0441\u044f\u043a\u0438\u0445 \u043a\u0440\u0438\u043f\u0442\u043e-\u0444\u0438\u0447, \u0430 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435.\u00a0<code>mt_rand()<\/code>\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430\u0440\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u0431\u044b\u043b\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e. \u0422\u0435\u043f\u0435\u0440\u044c \u0435\u0433\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0438 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Engine, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434 \u0432 PHP 8.2:<\/p>\n<pre><code class=\"php\">use Random\\Engine\\Xoshiro256StarStar; use Random\\Randomizer;  $blueprintRng = new Xoshiro256StarStar(     hash('sha256', \"Example seed that is converted to a 256 Bit string via SHA-256\", true) );  $fibers = []; for ($i = 0; $i &lt; 8; $i++) {     $fiberRng = clone $blueprintRng;     \/\/ Xoshiro256**'s 'jump()' method moves the blueprint ahead 2**128 steps, as if calling     \/\/ 'generate()' 2**128 times, giving the Fiber 2**128 unique values without needing to reseed.     $blueprintRng->jump();<\/code><\/pre>\n<h2>\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432 \u0442\u0440\u0435\u0439\u0442\u0430\u0445<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e\u00a0<a href=\"https:\/\/wiki.php.net\/rfc\/constants_in_traits\"><u>\u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0440\u0435\u0439\u0442\u043e\u0432<\/u><\/a>. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u0447\u0438 \u2014 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 \u0438\u043c\u044f \u0442\u0440\u0435\u0439\u0442\u0430, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u044d\u0442\u043e\u0442 \u0442\u0440\u0435\u0439\u0442.<\/p>\n<p>\u041e\u0447\u0435\u043d\u044c \u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434. \u0422\u0440\u0435\u0439\u0442 \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435 \u2014 \u044d\u0442\u043e \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442. \u041a\u043e\u043f\u0438\u043f\u0430\u0441\u0442 \u2014 \u0448\u0442\u0443\u043a\u0430 \u043e\u043f\u0430\u0441\u043d\u0430\u044f, \u043d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f (\u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u00abdon&#8217;t repeat yourself\u00bb). \u0418 \u0442\u0440\u0435\u0439\u0442 \u2014 \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u0441\u0430\u043c\u044b\u0445 \u043d\u0435\u0438\u043d\u0432\u0430\u0437\u0438\u0432\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u043e\u0442\u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0442\u044c.<\/p>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434 \u0432 PHP 8.2:<\/p>\n<pre><code class=\"php\">trait Foo {     public const CONSTANT = 1; }  class Bar {     use Foo; }  var_dump(Bar::CONSTANT); \/\/ 1 var_dump(Foo::CONSTANT); \/\/ Error<\/code><\/pre>\n<h2>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u043c\u0438<\/h2>\n<p>\u0412 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 PHP \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043d\u0435 \u043e\u0431\u044a\u044f\u0432\u0438\u043b\u0438 \u0440\u0430\u043d\u0435\u0435, \u0438 \u044d\u0442\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u043f\u043e\u0441\u043b\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c\u00a0<a href=\"https:\/\/wiki.php.net\/rfc\/deprecate_dynamic_properties\"><u>\u0442\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f<\/u><\/a>\u00a0\u2014 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f\u00a0<code>Deprecation notice<\/code>. \u041d\u043e \u0435\u0441\u043b\u0438 \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e, \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u0435\u0441\u043b\u0438 \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0435\u0439\u00a0<code>#[\\AllowDynamicProperties]<\/code>. \u0412 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430\u0445\u00a0<code>stdClass<\/code>\u00a0\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043a\u043e\u0434 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 PHP:<\/p>\n<pre><code class=\"php\">class User {     public $name; }  $user = new User(); $user->last_name = 'Doe';  $user = new stdClass(); $user->last_name = 'Doe';<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434 \u0432 PHP 8.2:<\/p>\n<pre><code class=\"php\">class User {     public $name; }  $user = new User(); $user->last_name = 'Doe'; \/\/ Deprecated notice  $user = new stdClass(); $user->last_name = 'Doe'; \/\/ Still allowed<\/code><\/pre>\n<h2>#[\\SensitiveParameter]<\/h2>\n<p>\u042d\u0442\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f, \u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043a\u043b\u0430\u0441\u0441\u043d\u0430\u044f \u0444\u0438\u0447\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u0435\u043b\u044c\u043a\u043e\u043c \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0430\u043d\u043e\u043d\u0441\u0435.<\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u043c\u0435\u0442\u043e\u0434\u0430\u0445 \u0442\u0435\u043f\u0435\u0440\u044c\u00a0<a href=\"https:\/\/www.php.net\/manual\/ru\/class.sensitive-parameter.php\"><u>\u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u0442\u044c<\/u><\/a>\u00a0\u043a\u0430\u043a\u00a0<code>#[\\SensitiveParameter]<\/code>. \u041d\u0438\u0436\u0435 \u0432 \u043a\u043e\u0434\u0435 \u0442\u0430\u043a \u043e\u0442\u043c\u0435\u0447\u0435\u043d \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u00a0<code>$secret<\/code>, \u0438 \u0432 \u043b\u043e\u0433\u0430\u0445 \u0432\u043c\u0435\u0441\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u00a0<code>secret<\/code>\u00a0\u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e\u00a0<code>(Object(SensitiveParameterValue)<\/code>.<\/p>\n<pre><code class=\"php\">function sensitiveParametersWithAttribute(     #[\\SensitiveParameter]     string $secret,     string $normal ) {     throw new Exception('Error!'); }<\/code><\/pre>\n<pre><code class=\"php\">Exception: Error! in example.php:15 Stack trace: #0 example.php(25): sensitiveParametersWithAttribute(Object(SensitiveParameterValue), 'normal') #1 {main}<\/code><\/pre>\n<p>\u0421\u0447\u0438\u0442\u0430\u044e \u044d\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u044b\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u043a\u0430\u0442\u044c \u0432\u0441\u044f\u043a\u0438\u0435 \u043a\u043b\u044e\u0447\u0438 \u043e\u0442 API, \u043f\u0430\u0440\u043e\u043b\u0438 \u043e\u0442 \u0431\u0430\u0437\u044b. \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 PHP \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0435\u0434\u0438\u043d\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0430 \u0437\u0430 \u044d\u0442\u0443 \u0444\u0438\u0447\u0443.<\/p>\n<h2>\u041a\u0430\u043a\u0438\u0435 \u0435\u0449\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0438<\/h2>\n<h4>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u00a0enum\u00a0\u0432 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u0445<\/h4>\n<p>\u0420\u0430\u043d\u044c\u0448\u0435, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u00a0<code>enum<\/code>, \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u042d\u0442\u043e \u0431\u044b\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u043e:\u00a0<code>enum<\/code>\u00a0\u0435\u0441\u0442\u044c, \u0430 \u0432 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u044b\u043b\u043e \u0438\u0437 \u043d\u0438\u0445 \u0447\u0442\u043e-\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e: \u043d\u043e\u0432\u0430\u044f \u0444\u0438\u0447\u0430 \u0443\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0441\u044c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441. \u041a\u043b\u0430\u0441\u0441\u043d\u043e, \u0447\u0442\u043e \u044f\u0437\u044b\u043a \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u0435\u0442 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043a\u043e\u043d\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438.<\/p>\n<pre><code class=\"php\">const C = [self::B->value => self::B];<\/code><\/pre>\n<h4>iterator_()\u00a0+\u00a0iterables<\/h4>\n<p><em>\u0422\u0435\u043f\u0435\u0440\u044c\u00a0<\/em><a href=\"https:\/\/www.php.net\/manual\/ru\/migration82.other-changes.php#migration82.other-changes.core\"><em><u>\u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c<\/u><\/em><\/a><em>\u00a0\u0432 \u043c\u0435\u0442\u043e\u0434\u044b\u00a0<\/em><code>iterator_()<\/code>\u00a0\u0442\u0438\u043f\u00a0<code>\\Traversables<\/code>. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0440\u0430\u043d\u044c\u0448\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c \u0442\u0438\u043f\u0430\u00a0<code>\\Traversable<\/code>, \u0438 \u0435\u0441\u043b\u0438 \u0434\u0430, \u0442\u043e \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0435\u0433\u043e \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0442\u044c. \u0412 PHP 8.2 \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u044d\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u0447\u0442\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430 \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0435\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c \u0438 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c.<\/p>\n<h4>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0430 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f<\/h4>\n<ul>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c,\u00a0<a href=\"https:\/\/www.php.net\/manual\/ru\/reflectionfunction.isanonymous.php\"><u>\u0430\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0439 \u043b\u0438 \u043c\u0435\u0442\u043e\u0434<\/u><\/a>\u00a0\u2014\u00a0<code>ReflectionFunction::isAnonymous()<\/code><\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c,\u00a0<a href=\"https:\/\/www.php.net\/manual\/ru\/reflectionmethod.hasprototype.php\"><u>\u0435\u0441\u0442\u044c \u043b\u0438 \u0443 \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f<\/u><\/a>\u00a0\u2014\u00a0<code>ReflectionMethod::hasPrototype()<\/code><\/p>\n<\/li>\n<\/ul>\n<h4>\u041d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0memory_reset_peak_usage<\/h4>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<a href=\"https:\/\/www.php.net\/manual\/ru\/function.memory-reset-peak-usage.php\"><u>\u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u044e\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443<\/u><\/a>\u00a0\u043f\u043e \u043f\u0438\u043a\u043e\u0432\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u043f\u0430\u043c\u044f\u0442\u0438. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f EventLoop \u043d\u0430 PHP, Roadrunner \u0438 Swoole \u2014 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0441\u043a\u0438\u043d\u0443\u0442\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u043c\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0438 \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u044c \u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0448\u043b\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043d\u0430 \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441.<\/p>\n<h4>\u0427\u0442\u043e \u043f\u0440\u0438\u0437\u043d\u0430\u043b\u0438 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u043c \u0438\u043b\u0438 \u0443\u0431\u0440\u0430\u043b\u0438<\/h4>\n<ul>\n<li>\n<p>\u0418\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044f \u0432 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u0432\u0438\u0434\u0430\u00a0<code>${}<\/code><\/p>\n<\/li>\n<li>\n<p>\u041d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>utf8_encode<\/code>\u00a0\u0438\u00a0<code>utf8_decode<\/code><\/p>\n<\/li>\n<li>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<code>strtolower<\/code>\u00a0\u0438\u00a0<code>strtoupper<\/code>\u00a0\u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442 \u043b\u043e\u043a\u0430\u043b\u044c \u2014 \u044d\u0442\u043e \u043a\u0440\u0443\u0442\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u0438 PHP, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432 \u0434\u0432\u0443\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 Linux, \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u0438\u0437-\u0437\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0439 \u043b\u043e\u043a\u0430\u043b\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0431\u0440\u0430\u043b\u0438 \u043c\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432\u00a0<code>callable<\/code>:<\/p>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p><code>\u201cself::method\u201d<\/code><\/p>\n<\/li>\n<li>\n<p><code>\u201cparent::method\u201d<\/code><\/p>\n<\/li>\n<li>\n<p><code>\u201cstatic::method\u201d<\/code><\/p>\n<\/li>\n<li>\n<p><code>[\u201cself\u201d, \u201cmethod\u201d]<\/code><\/p>\n<\/li>\n<li>\n<p><code>[\u201cparent\u201d, \u201cmethod\u201d]<\/code><\/p>\n<\/li>\n<li>\n<p><code>[\u201cstatic\u201d, \u201cmethod\u201d]<\/code><\/p>\n<\/li>\n<li>\n<p><code>[\u201cFoo\u201d, \u201cBar::Method\u201d]<\/code><\/p>\n<\/li>\n<li>\n<p><code>[new Foo, \u201cBar::Method\u201d]<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u043e\u0435 \u043c\u043d\u0435\u043d\u0438\u0435 \u2014 \u043d\u0430 PHP 8.2 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e \u0441\u0442\u043e\u0438\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u0445\u043e\u0442\u044f \u0431\u044b \u0438\u0437-\u0437\u0430 \u043a\u0440\u0443\u0442\u044b\u0445 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430. \u041e\u043d \u0432\u0441\u0435 \u0435\u0449\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u043e\u0434 \u0431\u043e\u043b\u0435\u0435 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c. \u0422\u0430\u043a\u0436\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u043e\u0444\u0438\u043a\u0441\u0438\u043b\u0438 \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u0435\u043b\u043a\u0438\u0435 \u0431\u0430\u0433\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043d\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b\u0438, \u043d\u043e \u0438\u0445 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e.<\/p>\n<h2>\u041a\u0430\u043a\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f PHP 8.2 \u0435\u0449\u0435 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435<\/h2>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u0447\u0438\u0442\u0430\u044e\u0442, \u0447\u0442\u043e \u0432 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e PHP \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0432 \u0420HP 8.2 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u0430\u043f\u043f\u043e\u0440\u0442\u043d\u044b\u0445 \u0432\u0435\u0449\u0435\u0439: \u043a\u043e\u0434 \u0432\u044b\u0447\u0438\u0449\u0430\u043b\u0438, \u0438\u0437 \u043d\u0435\u0433\u043e \u0447\u0442\u043e-\u0442\u043e \u0443\u0431\u0438\u0440\u0430\u043b\u0438. \u041a\u0430\u0436\u0434\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0432\u043e\u0434\u0438\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0444\u0438\u0447\u0430\u0445. \u0414\u0430 \u0438 \u0432\u0440\u044f\u0434 \u043b\u0438 \u0432\u0441\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043a\u0430\u043a\u0438\u0435 \u043a\u0443\u0441\u043a\u0438 \u043a\u043e\u0434\u0430 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043b\u0438. \u0422\u0430\u043a \u0447\u0442\u043e \u043f\u043e \u043e\u0431\u044a\u0435\u043c\u0443 \u0440\u0430\u0431\u043e\u0442\u044b \u0440\u0435\u043b\u0438\u0437 8.2 \u043d\u0435 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0440\u0435\u043b\u0438\u0437\u043e\u0432. \u041f\u0440\u043e\u0441\u0442\u043e \u0432 \u043d\u0435\u043c \u0447\u0443\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435 \u0444\u0438\u0447.<\/p>\n<p>\u0411\u043e\u043b\u044c\u0448\u0438\u0435 \u0443\u0441\u0438\u043b\u0438\u044f \u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 8.2 \u043f\u0440\u0438\u043b\u043e\u0436\u0438\u043b\u0438 \u0440\u0435\u0431\u044f\u0442\u0430 \u0438\u0437 PHP Foundation \u2014 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0444\u0438\u043d\u0430\u043d\u0441\u0438\u0440\u0443\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u0438\u0431\u044c\u044e\u0442\u0438\u0442\u044c \u0432 PHP.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>PHP Foundation \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043c\u043d\u043e\u0433\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 JetBrains, Automattic, Laravel. \u041f\u0440\u043e\u0435\u043a\u0442 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 22 \u043d\u043e\u044f\u0431\u0440\u044f 2021 \u0433\u043e\u0434\u0430, \u0438 \u0437\u0430 \u0433\u043e\u0434 \u043a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u0432 \u0438\u0437 \u0434\u0435\u0441\u044f\u0442\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432-\u0434\u043e\u0431\u0440\u043e\u0432\u043e\u043b\u044c\u0446\u0435\u0432 \u0438 \u0448\u0435\u0441\u0442\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0432\u043d\u0435\u0441\u043b\u0438 \u043f\u043e\u0447\u0442\u0438 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u0432 \u044f\u0434\u0440\u043e \u044f\u0437\u044b\u043a\u0430 PHP \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0412 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u044f\u0437\u044b\u043a\u0430 PHP Foundation \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044e \u0432 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u0432\u0438\u0434\u0430\u00a0<code>${}<\/code>,\u00a0<code>readonly<\/code>-\u043a\u043b\u0430\u0441\u0441\u044b, \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0438\u043f\u044b\u00a0<code>null<\/code>,\u00a0<code>false<\/code>\u00a0\u0438\u00a0<code>true<\/code>, \u0442\u0438\u043f\u00a0<code>true<\/code>, \u0442\u0438\u043f\u044b \u0432 \u0432\u0438\u0434\u0435 \u0434\u0438\u0437\u044a\u044e\u043d\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u0432 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445.<\/p>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e PHP 8.2 \u0435\u0449\u0435 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435, \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a PHP Foundation \u0414\u0436\u043e\u0440\u0434\u0436 \u041f. \u0411\u0430\u043d\u044c\u044f\u0440\u0434 \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u0432 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445. \u0412\u043c\u0435\u0441\u0442\u0435 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u043e\u043d \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0435\u0442 \u044d\u0442\u0438 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/auto-implement_stringable_for_string_backed_enums\"><u>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0434\u043b\u044f enum Stringable<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/asymmetric-visibility\"><u>\u0410\u0441\u0441\u0438\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u0430\u044f \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/dynamic_class_constant_fetch\"><u>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u0430<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/wiki.php.net\/rfc\/datetime-exceptions\"><u>\u0411\u043e\u043b\u0435\u0435<\/u><\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-342518","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=342518"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342518\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=342518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=342518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=342518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}