{"id":275,"date":"2016-02-06T16:04:09","date_gmt":"2016-02-06T16:04:09","guid":{"rendered":"http:\/\/temp.myhostingbubble.com\/blog\/?p=275"},"modified":"2017-06-09T12:51:03","modified_gmt":"2017-06-09T11:51:03","slug":"5-benefits-of-using-php-7","status":"publish","type":"post","link":"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/","title":{"rendered":"5 Benefits of using PHP 7."},"content":{"rendered":"<h3 class=\"post-body entry-content\">There was much talk of the anticipated PHP 7 release, and as of December 2015 it was officially in circulation, but what exactly does it bring to the table and what should we be expecting from it?<\/h3>\n<p>Well here are 5 reasons why you be excited!<\/p>\n<h2>1.\u00a0Much Faster than Older Versions<\/h2>\n<p>PHP 7 is faster than any other version of PHP. Not just a bit faster, but much faster, in fact in nearly all cases on all platforms it\u2019s twice as fast! With the help of the polished and reengineered \u2018Zend Engine\u2019, it his means that not only will you need fewer servers to handle the same amount of users but the code will be processed much faster than before.<\/p>\n<h2>2.\u00a0Spring Clean<\/h2>\n<p>One of the main reasons for this new slicker, much faster version of PHP has come about due to it undergoing a good \u2018spring clean\u2019. The removal of many of the older unused functions as well as unsupported Server APIs &amp; extensions have helped streamlined the code and allow for faster execution speed.<\/p>\n<h2>3.\u00a0Better Memory Consumption<\/h2>\n<p>As already mentioned, PHP 7 is much faster than its predecessor PHP 5.6, the new streamlined version is 50% more efficient when it comes to memory usage.<\/p>\n<h2>4.\u00a0Declarations &amp; Hints<\/h2>\n<p>Another great benefit of using PHP 7 is that it will allow users to declare what kind of return type a function is expected, similar to argument Type Hints.<\/p>\n<p>In addition, argument type hints and the new return-type declarations now support new scalar types, allowing developers to denote that they&#8217;re expecting strings, floats, ints or bools to be passed or returned.<\/p>\n<h2>5.\u00a0New Null Coalescing\u00a0&amp; Spaceship Operators<\/h2>\n<p>PHP 7 introduces a new, aptly named, spaceship operator &lt;=&gt;, which has adopted the name as it looks similar to a TIE fighter. Ideal for combined comparisons when dealing with the likes of sorting. It\u2019s also known as a three-way comparison operator and many other popular programming languages like Perl and Ruby already include it.<\/p>\n<p>Incidentally if you were wondering where PHP 6 had gone? Well, in actual fact there was no PHP 6. There were several key motives for PHP 5.6 moving to directly to PHP 7 and missing out PHP 6, the main reason was due to the fact PHP 6 took so long to come to fruition, that both its reputation and usability was seriously tarnished leaving the core community reluctant to adopt it in anger. Then came along PHP 7.<\/p>\n<p>If you have any queries or questions on our article then please get in touch with My Hosting Bubble.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There was much talk of the anticipated PHP 7 release, and as of December 2015 it was officially in circulation, but what exactly does it bring to the table and what should we be expecting from it? Well here are 5 reasons why you be excited! 1.\u00a0Much Faster than Older Versions PHP 7 is faster [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":276,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[318],"tags":[329,330,298,327,320,323,322,321,334,324,325,333,328,331,326,201,319,30,332],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"description\" content=\"There was much talk of the anticipated release of PHP 7, but what exactly does it bring to the table and what should we be expecting from it?\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What does PHP 7 offer? Here are 5 New Features of PHP 7.\" \/>\n<meta property=\"og:description\" content=\"There was much talk of the anticipated release of PHP 7, but what exactly does it bring to the table and what should we be expecting from it?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/\" \/>\n<meta property=\"og:site_name\" content=\"My Hosting Bubble\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-06T16:04:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-06-09T11:51:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.myhostingbubble.com\/blog\/wp-content\/uploads\/2016\/02\/PHP7.png\" \/>\n\t<meta property=\"og:image:width\" content=\"727\" \/>\n\t<meta property=\"og:image:height\" content=\"484\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Taplin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/#website\",\"url\":\"https:\/\/www.myhostingbubble.com\/blog\/\",\"name\":\"My Hosting Bubble\",\"description\":\"Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.myhostingbubble.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/#primaryimage\",\"inLanguage\":\"en-GB\",\"url\":\"https:\/\/www.myhostingbubble.com\/blog\/wp-content\/uploads\/2016\/02\/PHP7.png\",\"contentUrl\":\"https:\/\/www.myhostingbubble.com\/blog\/wp-content\/uploads\/2016\/02\/PHP7.png\",\"width\":727,\"height\":484,\"caption\":\"PHP7\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/#webpage\",\"url\":\"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/\",\"name\":\"What does PHP 7 offer? Here are 5 New Features of PHP 7.\",\"isPartOf\":{\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/#primaryimage\"},\"datePublished\":\"2016-02-06T16:04:09+00:00\",\"dateModified\":\"2017-06-09T11:51:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/#\/schema\/person\/11bf5dc843d62588ba928e992cb83291\"},\"description\":\"There was much talk of the anticipated release of PHP 7, but what exactly does it bring to the table and what should we be expecting from it?\",\"breadcrumb\":{\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.myhostingbubble.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"5 Benefits of using PHP 7.\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/#\/schema\/person\/11bf5dc843d62588ba928e992cb83291\",\"name\":\"David Taplin\",\"url\":\"https:\/\/www.myhostingbubble.com\/blog\/author\/david\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"description":"There was much talk of the anticipated release of PHP 7, but what exactly does it bring to the table and what should we be expecting from it?","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.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/","og_locale":"en_GB","og_type":"article","og_title":"What does PHP 7 offer? Here are 5 New Features of PHP 7.","og_description":"There was much talk of the anticipated release of PHP 7, but what exactly does it bring to the table and what should we be expecting from it?","og_url":"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/","og_site_name":"My Hosting Bubble","article_published_time":"2016-02-06T16:04:09+00:00","article_modified_time":"2017-06-09T11:51:03+00:00","og_image":[{"width":727,"height":484,"url":"https:\/\/www.myhostingbubble.com\/blog\/wp-content\/uploads\/2016\/02\/PHP7.png","path":"\/home\/site1074\/public_html\/live\/htdocs\/blog\/wp-content\/uploads\/2016\/02\/PHP7.png","size":"full","id":276,"alt":"PHP7","pixels":351868,"type":"image\/png"}],"twitter_card":"summary","twitter_misc":{"Written by":"David Taplin","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.myhostingbubble.com\/blog\/#website","url":"https:\/\/www.myhostingbubble.com\/blog\/","name":"My Hosting Bubble","description":"Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.myhostingbubble.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"ImageObject","@id":"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/#primaryimage","inLanguage":"en-GB","url":"https:\/\/www.myhostingbubble.com\/blog\/wp-content\/uploads\/2016\/02\/PHP7.png","contentUrl":"https:\/\/www.myhostingbubble.com\/blog\/wp-content\/uploads\/2016\/02\/PHP7.png","width":727,"height":484,"caption":"PHP7"},{"@type":"WebPage","@id":"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/#webpage","url":"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/","name":"What does PHP 7 offer? Here are 5 New Features of PHP 7.","isPartOf":{"@id":"https:\/\/www.myhostingbubble.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/#primaryimage"},"datePublished":"2016-02-06T16:04:09+00:00","dateModified":"2017-06-09T11:51:03+00:00","author":{"@id":"https:\/\/www.myhostingbubble.com\/blog\/#\/schema\/person\/11bf5dc843d62588ba928e992cb83291"},"description":"There was much talk of the anticipated release of PHP 7, but what exactly does it bring to the table and what should we be expecting from it?","breadcrumb":{"@id":"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.myhostingbubble.com\/blog\/2016\/02\/06\/5-benefits-of-using-php-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.myhostingbubble.com\/blog\/"},{"@type":"ListItem","position":2,"name":"5 Benefits of using PHP 7."}]},{"@type":"Person","@id":"https:\/\/www.myhostingbubble.com\/blog\/#\/schema\/person\/11bf5dc843d62588ba928e992cb83291","name":"David Taplin","url":"https:\/\/www.myhostingbubble.com\/blog\/author\/david\/"}]}},"_links":{"self":[{"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/posts\/275"}],"collection":[{"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/comments?post=275"}],"version-history":[{"count":5,"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/posts\/275\/revisions"}],"predecessor-version":[{"id":620,"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/posts\/275\/revisions\/620"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/media\/276"}],"wp:attachment":[{"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/media?parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/categories?post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/tags?post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}