{"id":37160,"date":"2021-03-05T17:50:33","date_gmt":"2021-03-05T15:50:33","guid":{"rendered":"https:\/\/tuthost.ua\/bez-rubriki\/support-for-php-8-on-hosting\/"},"modified":"2021-03-05T17:50:33","modified_gmt":"2021-03-05T15:50:33","slug":"podderzhka-php-8-na-hostinge","status":"publish","type":"post","link":"https:\/\/tuthost.ua\/en\/news\/podderzhka-php-8-na-hostinge\/","title":{"rendered":"Support for PHP 8 on hosting"},"content":{"rendered":"<p>On November 26, 2020, PHP 8 was released. This version of PHP is already available for selection and use on our hosting site.<br \/>\nThe main innovations in this version:<!--more--><\/p>\n<ul>\n<li><strong>Named arguments<\/strong> &#8211; Specify only necessary parameters, skip the optional ones.<\/li>\n<li><strong>Attributes<\/strong> &#8211; Instead of PHPDoc annotations you can use structural metadata with native PHP syntax.<\/li>\n<li><strong>Declaring properties in the constructor<\/strong> &#8211; Less boilerplate code to define and initialize properties.<\/li>\n<li><strong>Union types<\/strong> &#8211; Instead of using PHPDoc annotations for union types, you can use union type declarations that are checked at runtime.<\/li>\n<li><strong>Match Expression<\/strong> &#8211; The new match expression is similar to the switch operator, but with special features<\/li>\n<li><strong>Nullsafe operator<\/strong> &#8211; Instead of checking for null you can use a sequence of calls with the new Nullsafe operator.<\/li>\n<li><strong>Improved string and number comparison<\/strong> &#8211; PHP 8 uses number comparison when comparing with a number string. Otherwise, the number is converted to a string and a string comparison is used.<\/li>\n<li><strong>Type consistency errors for built-in functions<\/strong> &#8211; Most internal functions now throw an Error exception if an error occurs during parameter checking.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>On November 26, 2020, PHP 8 was released. This version of PHP is already available for selection and use on our hosting site. The main innovations in this version:<\/p>\n","protected":false},"author":1,"featured_media":29053,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","ghostkit_customizer_options":"","ghostkit_custom_css":"","ghostkit_custom_js_head":"","ghostkit_custom_js_foot":"","ghostkit_typography":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[171],"tags":[],"class_list":["post-37160","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"taxonomy_info":{"category":[{"value":171,"label":"News"}]},"featured_image_src_large":["https:\/\/tuthost.ua\/wp-content\/uploads\/2021\/03\/php_8_released-1024x640.png",1024,640,true],"author_info":{"display_name":"Denys Semeniuk","author_link":"https:\/\/tuthost.ua\/en\/author\/semden\/"},"comment_info":0,"category_info":[{"term_id":171,"name":"News","slug":"news","term_group":0,"term_taxonomy_id":171,"taxonomy":"category","description":"News","parent":0,"count":175,"filter":"raw","cat_ID":171,"category_count":175,"category_description":"News","cat_name":"News","category_nicename":"news","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/posts\/37160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/comments?post=37160"}],"version-history":[{"count":0,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/posts\/37160\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/media\/29053"}],"wp:attachment":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/media?parent=37160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/categories?post=37160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/tags?post=37160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}