{"id":24140,"date":"2024-01-22T12:24:12","date_gmt":"2024-01-22T12:24:12","guid":{"rendered":"https:\/\/www.aceinfoway.com\/blog\/?p=24140"},"modified":"2024-01-23T09:28:08","modified_gmt":"2024-01-23T09:28:08","slug":"whats-new-in-php-83","status":"publish","type":"post","link":"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83","title":{"rendered":"What&#8217;s New in PHP 8.3: Discover the Exciting Features and Enhancements"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_37 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\r\n<div class=\"ez-toc-title-container\">\r\n<p class=\"ez-toc-title\">Table of Contents<\/p>\r\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\r\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\/#PHP_83_New_and_Exciting_Features\" title=\"PHP 8.3: New and Exciting Features\">PHP 8.3: New and Exciting Features<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\/#1_Typed_Class_Constants\" title=\"1) Typed Class Constants\">1) Typed Class Constants<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\/#2_stream_context_set_options_Function\" title=\"2) stream_context_set_options Function\">2) stream_context_set_options Function<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\/#3_Randomizer_getBytesFromString_Method\" title=\"3) Randomizer::getBytesFromString Method\">3) Randomizer::getBytesFromString Method<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\/#4_Fallback_Value_Support_for_PHP_INI_Environment_Variable_Syntax\" title=\"4) Fallback Value Support for PHP INI Environment Variable Syntax\">4) Fallback Value Support for PHP INI Environment Variable Syntax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\/#5_class_alias_Supports_Aliasing_Built-in_PHP_Classes\" title=\"5) class_alias() Supports Aliasing Built-in PHP Classes\">5) class_alias() Supports Aliasing Built-in PHP Classes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\/#6_Dynamic_Class_Constant_and_Enum_Number_Fetch_Support\" title=\"6) Dynamic Class Constant and Enum Number Fetch Support\">6) Dynamic Class Constant and Enum Number Fetch Support<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\/#7_Randomizer_getFloat_and_nextFloat_Methods\" title=\"7) Randomizer::getFloat() and nextFloat() Methods\">7) Randomizer::getFloat() and nextFloat() Methods<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\/#8_json_validate_Function\" title=\"8) json_validate() Function\">8) json_validate() Function<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\/#9_gc_status_Now_Returns_Additional_Information\" title=\"9) gc_status() Now Returns Additional Information\">9) gc_status() Now Returns Additional Information<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\/#10_PHP_CLI_Lint_Supports_Linting_Multiple_Files_at_Once\" title=\"10) PHP CLI Lint Supports Linting Multiple Files at Once\">10) PHP CLI Lint Supports Linting Multiple Files at Once<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\/#Deprecations_and_Changes_in_PHP_83\" title=\"Deprecations and Changes in PHP 8.3\">Deprecations and Changes in PHP 8.3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\r\n<p><span style=\"font-weight: 400;\">As the PHP project adheres to its annual tradition of releasing a new major or minor version towards the end of each year, PHP 8.3 is no exception.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This latest iteration brings forth many new features and enhancements, further solidifying PHP&#8217;s standing as a versatile and evolving language.<\/span><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this article, we will delve into the noteworthy additions and changes introduced in <\/span><a href=\"https:\/\/www.cloudways.com\/blog\/php-8-3\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">PHP 8.3<\/span><\/a><span style=\"font-weight: 400;\">, shedding light on the key aspects developers need to be aware of.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"PHP_83_New_and_Exciting_Features\"><\/span>PHP 8.3: New and Exciting Features<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>Typed Class Constants<\/li>\n<li>stream_context_set_options Function<\/li>\n<li>Randomizer::getBytesFromString Method<\/li>\n<li>Fallback Value Support for PHP INI Environment Variable Syntax<\/li>\n<li>class_alias() Supports Aliasing Built-in PHP Classes<\/li>\n<li>Dynamic Class Constant and Enum Number Fetch Support<\/li>\n<li>Randomizer::getFloat() and nextFloat() Methods<\/li>\n<li>json_validate() Function<\/li>\n<li>gc_status() Now Returns Additional Information<\/li>\n<li>PHP CLI Lint Supports Linting Multiple Files at Once<\/li>\n<\/ol>\n<blockquote class=\"related-post\">\n<div class=\"related-post-img\"><img decoding=\"async\" src=\"https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2022\/11\/7-most-popular-backend-frameworks-for-web-development.jpg\" \/><\/div>\n<div class=\"related-post-text\">\n<h4>7 Most Popular Backend Frameworks for Web Development (2024)<\/h4>\n<p><a class=\"bluebtn1 btnarrow\" href=\"https:\/\/www.aceinfoway.com\/blog\/best-backend-frameworks\" target=\"_blank\" rel=\"dofollow noopener\">Explore<\/a><\/p>\n<\/div>\n<\/blockquote>\n<h2><span class=\"ez-toc-section\" id=\"1_Typed_Class_Constants\"><\/span>1) Typed Class Constants<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">In PHP 8.3, a noteworthy improvement comes in the form of typed class constants. This new feature allows developers to specify types for class constants, promoting type coherence and minimizing the chances of inadvertent deviations from the original declaration. This enhancement applies not only to class constants but also extends to constants within interfaces, traits, and enums.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The introduction of typed class constants is particularly beneficial for preserving type uniformity when dealing with subclasses derived from base declarations. This helps prevent unintentional modifications to the type, thereby reducing the risk of compatibility issues.<\/span><\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\"><code><code><code>interface ConstTest {<br \/>\nconst string VERSION = \"PHP 8.3\";<br \/>\n}<\/code><\/code><\/code>\/\/ Illegal:<br \/>\ninterface ConstTest {<br \/>\nconst float VERSION = &#8220;PHP 8.3&#8221;;<br \/>\n}<br \/>\n<code><code><\/code><\/code><\/div>\n<h2><span class=\"ez-toc-section\" id=\"2_stream_context_set_options_Function\"><\/span>2) stream_context_set_options Function<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The release of PHP 8.3 introduces an enhanced function called stream_context_set_options, which improves upon the existing stream_context_set_option. This new function is designed to handle multiple options and is anticipated to supplant the original function in upcoming PHP versions.<\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\">\n<p>php<\/p>\n<p>stream_context_set_options($stream_or_context, [&#8216;http&#8217; =&gt; [&#8216;method&#8217; =&gt; &#8216;POST&#8217;]]);<\/p>\n<\/div>\n<p>This update enhances stream context manipulation by providing a more versatile and future-proof API.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"3_Randomizer_getBytesFromString_Method\"><\/span>3) Randomizer::getBytesFromString Method<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In PHP 8.3, the \\Random\\Randomizer class introduces the getBytesFromString method, which facilitates the creation of random sequences derived from a designated character string. This functionality is particularly valuable for generating secure random bytes from a predetermined set of characters. The inclusion of this method enhances the versatility of random data generation, empowering developers to define the origin of characters for the selection of random bytes.<\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\">\n<p>php<\/p>\n<p>$rng = new Random\\Randomizer();<br \/>\n$alpha = &#8216;ABCDEFGHJKMNPQRSTVWXYZ&#8217;;<\/p>\n<p>$rng-&gt;getBytesFromString($alpha, 6); \/\/ &#8220;MBXGWL&#8221;<br \/>\n$rng-&gt;getBytesFromString($alpha, 6); \/\/ &#8220;LESPMG&#8221;<br \/>\n$rng-&gt;getBytesFromString($alpha, 6); \/\/ &#8220;NVHWXC&#8221;<\/p>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"4_Fallback_Value_Support_for_PHP_INI_Environment_Variable_Syntax\"><\/span>4) Fallback Value Support for PHP INI Environment Variable Syntax<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>With the introduction of version 8.3, PHP developers now can define default values for PHP INI settings in cases where specific environment variables are not present. This enhancement enhances configurability by offering default values, streamlining configuration management, and facilitating the smooth handling of absent environment variables.<\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\">\n<p>php<\/p>\n<p>\/\/ Fallback to &#8216;Foo&#8217; if SESSION_NAME is not set<br \/>\nsession.name = ${SESSION_NAME:-Foo}<\/p>\n<p>\/\/ Fallback to &#8216;info@example.com&#8217; if MAIL_FROM_USER or MAIL_FROM_DOMAIN is not set<br \/>\nsendmail_from = &#8220;${MAIL_FROM_USER:-info}@${MAIL_FROM_DOMAIN:-example.com}&#8221;<\/p>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"5_class_alias_Supports_Aliasing_Built-in_PHP_Classes\"><\/span>5) class_alias() Supports Aliasing Built-in PHP Classes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>With the introduction of PHP 8.3, the class_alias() function now supports the aliasing of built-in PHP classes. This enhancement empowers developers to utilize class_alias() for establishing alternative names for fundamental PHP classes, offering increased versatility in code structuring and naming conventions. Consequently, this improvement facilitates the creation of more organized and expressive code when dealing with native PHP classes.<\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\">\n<p>php<\/p>\n<p>class_alias(\\DateTime::class, &#8216;MyDateTime&#8217;);<br \/>\n$customDateTime = new MyDateTime();<\/p>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"6_Dynamic_Class_Constant_and_Enum_Number_Fetch_Support\"><\/span>6) Dynamic Class Constant and Enum Number Fetch Support<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>PHP 8.3 introduces a simplified approach to retrieve class constants and enum members using variable names. The previously cumbersome constant() function usage is replaced with a more intuitive syntax, which enhances the readability of code. This enhancement streamlines the dynamic access of class constants and enum members.<\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\">\n<p>php<\/p>\n<p>$constantName = &#8216;THE_CONST&#8217;;<br \/>\n$memberName = &#8216;FirstMember&#8217;;<\/p>\n<p>echo MyClass::{$constantName};<br \/>\necho MyEnum::{$memberName}-&gt;value;<\/p>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"7_Randomizer_getFloat_and_nextFloat_Methods\"><\/span>7) Randomizer::getFloat() and nextFloat() Methods<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Building upon the enhancements made in the Random extension, PHP 8.3 introduces two additional techniques for producing random float values: getFloat() and nextFloat(). These methods offer improved precision and increased control over the generation of random floating-point numbers, empowering developers with greater flexibility in obtaining random float values within defined ranges.<\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\">\n<p>php<\/p>\n<p>$rng = new Random\\Randomizer();<\/p>\n<p>\/\/ Generate a float value between 0 and 5<br \/>\n$rng-&gt;getFloat(0, 5); \/\/ 2.3937446906217<\/p>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"8_json_validate_Function\"><\/span>8) json_validate() Function<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before PHP 8.3, checking the syntactic correctness of a JSON-encoded string required using json_decode() and examining for errors. The introduction of the json_validate() function streamlines this procedure, as it validates the JSON syntax without necessitating the creation of associative arrays or objects, thus preserving memory. This function proves especially beneficial for validating JSON payloads before they are stored or delivered in a request-response context.<\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\">\n<p>php<\/p>\n<p>if (json_validate($maybeJSON)) {<br \/>\n\/\/ Do something with $maybeJSON<br \/>\n}<\/p>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"9_gc_status_Now_Returns_Additional_Information\"><\/span>9) gc_status() Now Returns Additional Information<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In PHP 8.3, the gc_status() function, which is tasked with delivering statistics related to the garbage collector, undergoes an improvement. The upgraded function now furnishes extra details, encompassing information about the ongoing status, protection status, buffer size, and other relevant parameters. This enhancement offers developers a more extensive and insightful perspective on the garbage collector&#8217;s behavior.<\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\">\n<p>php<\/p>\n<p>$gcStatus = gc_status();<br \/>\necho &#8220;Running: &#8221; . $gcStatus[&#8216;Running&#8217;];<br \/>\necho &#8220;Memory usage before collection: &#8220;.$gcStatus[&#8216;memoryUsageBefore&#8217;];<br \/>\necho &#8220;Memory usage after collection: &#8221; .$gcStatus[&#8216;memoryUsageAfter&#8217;];<\/p>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"10_PHP_CLI_Lint_Supports_Linting_Multiple_Files_at_Once\"><\/span>10) PHP CLI Lint Supports Linting Multiple Files at Once<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>PHP 8.3 introduces a noteworthy enhancement that enables the simultaneous linting of multiple files within a single PHP CLI linting process invocation. This improvement streamlines the syntax error-checking workflow, enhancing efficiency when examining multiple files. This update contributes to a more streamlined developer experience by allowing the concurrent linting of multiple files.<\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\">\n<p>bash<\/p>\n<p>php -l file1.php file2.php file3.php<\/p>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"Deprecations_and_Changes_in_PHP_83\"><\/span>Deprecations and Changes in PHP 8.3<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>1) unserialize(): E-NOTICE to E-WARNING<\/h3>\n<p>In PHP 8.3, there is a modification in the behavior of the unserialize() function. Specifically, error conditions that used to trigger notices (E_NOTICE) will now generate warnings (E_WARNING). This adjustment encompasses scenarios like syntax errors and issues with custom __unserialize handlers.<\/p>\n<h3>2) get_class() and get_parent_class() Changes<\/h3>\n<p>In PHP 8.3, the practice of invoking get_class() and get_parent_class() without parameters has been deprecated. This modification is intended to enhance the efficiency of these functions and remove any potential ambiguities resulting from multiple function signatures.<\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\">\n<p>php<\/p>\n<p>class MyException extends InvalidArgumentException {<br \/>\npublic function __construct() {<br \/>\nget_class(); \/\/ Deprecated in PHP 8.3<br \/>\nget_parent_class(); \/\/ Deprecated in PHP 8.3<br \/>\n}<br \/>\n}<\/p>\n<\/div>\n<p>Developers are advised to include the $object parameter when utilizing these functions to prevent deprecation notices.<\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\">\n<p>php<\/p>\n<p>\/\/ PHP 8.3<br \/>\nunserialize(&#8216;invalid_data&#8217;); \/\/ Now emits E_WARNING for syntax errors<\/p>\n<\/div>\n<p>This change promotes consistency in error handling and encourages developers to handle unserialized errors more proactively.<\/p>\n<h3>3) HTML Highlight Tag Changes<\/h3>\n<p>In PHP 8.3, notable modifications have been introduced to the syntax highlighting functions, specifically highlight_file and highlight_string. The HTML output generated by these functions is now enclosed within <span style=\"font-weight: 400;\">&lt;pre&gt;&lt;code&gt;&lt;\/code&gt;&lt;\/pre&gt; <\/span>tags. Notably, line breaks are no longer transformed into <span style=\"font-weight: 400;\">&lt;br\/&gt; <\/span>tags, and both white spaces and tabs are no longer converted into HTML entities. This refinement enhances the legibility of the highlighted code and adheres more closely to contemporary HTML standards.<\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\">\n<p>php<\/p>\n<p>$code = file_get_contents(&#8216;example.php&#8217;);<br \/>\necho highlight_string($code, true);<\/p>\n<\/div>\n<h3>4) Granular DateTime Exceptions<\/h3>\n<p>In PHP 8.3, there is an introduction of specialized Exception and Error classes tailored for date-related issues. This enhancement offers a higher level of detail when errors occur, specifically in the context of date and time operations. These extension-specific classes contribute to a more precise error reporting system, empowering developers to better identify and resolve date-related errors with increased efficiency.<\/p>\n<div class=\"code_contain\" style=\"padding-left: 30px;\">\n<p>php<\/p>\n<p>try {<br \/>\n\/\/ DateTime-related operation<br \/>\n} catch (\\DateTimeException $e) {<br \/>\n\/\/ Handle DateTime-specific exception<br \/>\n} catch (\\Exception $e) {<br \/>\n\/\/ Handle other exceptions<br \/>\n}<\/p>\n<\/div>\n<blockquote class=\"related-post\">\n<div class=\"related-post-img\"><img decoding=\"async\" src=\"https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2022\/11\/7-most-popular-backend-frameworks-for-web-development.jpg\" \/><\/div>\n<div class=\"related-post-text\">\n<h4>7 Most Popular Backend Frameworks for Web Development (2024)<\/h4>\n<p><a class=\"bluebtn1 btnarrow\" href=\"https:\/\/www.aceinfoway.com\/blog\/best-backend-frameworks\" target=\"_blank\" rel=\"dofollow noopener\">Explore<\/a><\/p>\n<\/div>\n<\/blockquote>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Although PHP 8.3 doesn&#8217;t bring groundbreaking features like its predecessors, such as PHP 8.0 and 8.1, its focus is on refining the language, aligning features with evolving industry standards, and addressing syntax and error handling aspects. Developers and teams familiar with these enhancements can strategically leverage them to enhance code quality and maintainability.<\/p>\n<p>For those contemplating a shift to PHP 8.3, it is advisable to thoroughly review the documentation to ensure a seamless adaptation to the new features and changes.<\/p>\n<p>In the realm of <a href=\"https:\/\/www.aceinfoway.com\/blog\/best-backend-frameworks\" target=\"_blank\" rel=\"noopener\"><strong>top backend frameworks in the 2024<\/strong><\/a> landscape, PHP, accompanied by its dynamic Laravel framework, emerges as a standout. Widely acclaimed for its power and flexibility, PHP with Laravel is generating buzz among developers everywhere. The combination opens up endless possibilities for development.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As the PHP project adheres to its annual tradition of releasing a new major or minor version towards the end of each year, PHP 8.3 is no exception.\u00a0 This latest iteration brings forth many new features and enhancements, further solidifying PHP&#8217;s standing as a versatile and evolving language.\u00a0 In this article, we will delve into [&hellip;]<\/p>\n","protected":false},"author":769429,"featured_media":24145,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[43],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.10 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>PHP 8.3: Unveiling Exciting Features and Enhancements<\/title>\r\n<meta name=\"description\" content=\"Discover the latest in PHP 8.3 \u2013 explore new features and enhancements for advanced web development.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"PHP 8.3: Unveiling Exciting Features and Enhancements\" \/>\r\n<meta property=\"og:description\" content=\"Discover the latest in PHP 8.3 \u2013 explore new features and enhancements for advanced web development.\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\" \/>\r\n<meta property=\"og:site_name\" content=\"Ace Infoway\" \/>\r\n<meta property=\"article:published_time\" content=\"2024-01-22T12:24:12+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2024-01-23T09:28:08+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More.jpg\" \/>\r\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\r\n\t<meta property=\"og:image:height\" content=\"524\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\r\n<meta name=\"author\" content=\"Jigar Mistry\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jigar Mistry\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\",\"url\":\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\",\"name\":\"PHP 8.3: Unveiling Exciting Features and Enhancements\",\"isPartOf\":{\"@id\":\"https:\/\/www.aceinfoway.com\/blog\/#website\"},\"datePublished\":\"2024-01-22T12:24:12+00:00\",\"dateModified\":\"2024-01-23T09:28:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.aceinfoway.com\/blog\/#\/schema\/person\/28f460c1d0eb1d327b9f3c0ae5634651\"},\"description\":\"Discover the latest in PHP 8.3 \u2013 explore new features and enhancements for advanced web development.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.aceinfoway.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What&#8217;s New in PHP 8.3: Discover the Exciting Features and Enhancements\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.aceinfoway.com\/blog\/#website\",\"url\":\"https:\/\/www.aceinfoway.com\/blog\/\",\"name\":\"Ace Infoway\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.aceinfoway.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.aceinfoway.com\/blog\/#\/schema\/person\/28f460c1d0eb1d327b9f3c0ae5634651\",\"name\":\"Jigar Mistry\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.aceinfoway.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c8d4f8958f3fea08514f4875661d7a8c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c8d4f8958f3fea08514f4875661d7a8c?s=96&d=mm&r=g\",\"caption\":\"Jigar Mistry\"},\"description\":\"Jigar Mistry is a Chief Technology Officer at Ace Infoway having an extensive experience of 17+ years in the IT industry with different roles. Cognizant of technologies and innovations he strives for technically advanced &amp; creative solutions.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/jigarmistry\/\"]}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP 8.3: Unveiling Exciting Features and Enhancements","description":"Discover the latest in PHP 8.3 \u2013 explore new features and enhancements for advanced web development.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83","og_locale":"en_US","og_type":"article","og_title":"PHP 8.3: Unveiling Exciting Features and Enhancements","og_description":"Discover the latest in PHP 8.3 \u2013 explore new features and enhancements for advanced web development.","og_url":"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83","og_site_name":"Ace Infoway","article_published_time":"2024-01-22T12:24:12+00:00","article_modified_time":"2024-01-23T09:28:08+00:00","og_image":[{"width":1024,"height":524,"url":"https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More.jpg","type":"image\/jpeg"}],"author":"Jigar Mistry","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jigar Mistry","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83","url":"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83","name":"PHP 8.3: Unveiling Exciting Features and Enhancements","isPartOf":{"@id":"https:\/\/www.aceinfoway.com\/blog\/#website"},"datePublished":"2024-01-22T12:24:12+00:00","dateModified":"2024-01-23T09:28:08+00:00","author":{"@id":"https:\/\/www.aceinfoway.com\/blog\/#\/schema\/person\/28f460c1d0eb1d327b9f3c0ae5634651"},"description":"Discover the latest in PHP 8.3 \u2013 explore new features and enhancements for advanced web development.","breadcrumb":{"@id":"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.aceinfoway.com\/blog\/whats-new-in-php-83#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.aceinfoway.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What&#8217;s New in PHP 8.3: Discover the Exciting Features and Enhancements"}]},{"@type":"WebSite","@id":"https:\/\/www.aceinfoway.com\/blog\/#website","url":"https:\/\/www.aceinfoway.com\/blog\/","name":"Ace Infoway","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.aceinfoway.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.aceinfoway.com\/blog\/#\/schema\/person\/28f460c1d0eb1d327b9f3c0ae5634651","name":"Jigar Mistry","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.aceinfoway.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c8d4f8958f3fea08514f4875661d7a8c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c8d4f8958f3fea08514f4875661d7a8c?s=96&d=mm&r=g","caption":"Jigar Mistry"},"description":"Jigar Mistry is a Chief Technology Officer at Ace Infoway having an extensive experience of 17+ years in the IT industry with different roles. Cognizant of technologies and innovations he strives for technically advanced &amp; creative solutions.","sameAs":["https:\/\/www.linkedin.com\/in\/jigarmistry\/"]}]}},"rttpg_featured_image_url":{"full":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More.jpg",1024,524,false],"landscape":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More.jpg",1024,524,false],"portraits":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More.jpg",1024,524,false],"thumbnail":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More-150x150.jpg",150,150,true],"medium":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More-300x154.jpg",300,154,true],"large":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More.jpg",1024,524,false],"1536x1536":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More.jpg",1024,524,false],"2048x2048":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More.jpg",1024,524,false],"blog-large":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More-669x272.jpg",669,272,true],"blog-medium":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More-320x202.jpg",320,202,true],"portfolio-full":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More-940x400.jpg",940,400,true],"portfolio-one":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More-540x272.jpg",540,272,true],"portfolio-two":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More-460x295.jpg",460,295,true],"portfolio-three":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More-300x214.jpg",300,214,true],"portfolio-five":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More-177x142.jpg",177,142,true],"recent-posts":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More-700x441.jpg",700,441,true],"recent-works-thumbnail":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More-66x66.jpg",66,66,true],"200":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More.jpg",200,102,false],"400":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More.jpg",400,205,false],"600":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More.jpg",600,307,false],"800":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More.jpg",800,409,false],"1200":["https:\/\/www.aceinfoway.com\/blog\/wp-content\/uploads\/2024\/01\/PHP-8.3-New-Features-Deprecations-and-More.jpg",1024,524,false]},"rttpg_author":{"display_name":"Jigar Mistry","author_link":"https:\/\/www.aceinfoway.com\/blog\/author\/jigar-mistry"},"rttpg_comment":1,"rttpg_category":"<a href=\"https:\/\/www.aceinfoway.com\/blog\/advanced-technologies\" rel=\"category tag\">Advanced Technologies<\/a>","rttpg_excerpt":"As the PHP project adheres to its annual tradition of releasing a new major or minor version towards the end of each year, PHP 8.3 is no exception.\u00a0 This latest iteration brings forth many new features and enhancements, further solidifying PHP&#8217;s standing as a versatile and evolving language.\u00a0 In this article, we will delve into&hellip;","_links":{"self":[{"href":"https:\/\/www.aceinfoway.com\/blog\/wp-json\/wp\/v2\/posts\/24140"}],"collection":[{"href":"https:\/\/www.aceinfoway.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aceinfoway.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aceinfoway.com\/blog\/wp-json\/wp\/v2\/users\/769429"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aceinfoway.com\/blog\/wp-json\/wp\/v2\/comments?post=24140"}],"version-history":[{"count":20,"href":"https:\/\/www.aceinfoway.com\/blog\/wp-json\/wp\/v2\/posts\/24140\/revisions"}],"predecessor-version":[{"id":24165,"href":"https:\/\/www.aceinfoway.com\/blog\/wp-json\/wp\/v2\/posts\/24140\/revisions\/24165"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aceinfoway.com\/blog\/wp-json\/wp\/v2\/media\/24145"}],"wp:attachment":[{"href":"https:\/\/www.aceinfoway.com\/blog\/wp-json\/wp\/v2\/media?parent=24140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aceinfoway.com\/blog\/wp-json\/wp\/v2\/categories?post=24140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aceinfoway.com\/blog\/wp-json\/wp\/v2\/tags?post=24140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}