{"id":942,"date":"2017-01-18T17:26:50","date_gmt":"2017-01-18T17:26:50","guid":{"rendered":"https:\/\/www.myhostingbubble.com\/blog\/?p=942"},"modified":"2017-06-09T17:43:55","modified_gmt":"2017-06-09T16:43:55","slug":"php-7-1-now-available-shared-premium-hosting-servers","status":"publish","type":"post","link":"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/","title":{"rendered":"PHP 7.1 Now available on Shared &#038; Premium Hosting Servers"},"content":{"rendered":"<h4>PHP 7.1 is the new minor release of PHP, which we now\u00a0support on\u00a0the majority\u00a0of our\u00a0<span style=\"color: #3366ff;\"><a style=\"color: #3366ff;\" href=\"https:\/\/www.myhostingbubble.com\/web-hosting\/shared\">Shared Hosting<\/a><\/span>\u00a0and all of our\u00a0<span style=\"color: #3366ff;\"><a style=\"color: #3366ff;\" href=\"https:\/\/www.myhostingbubble.com\/web-hosting\/premium\">Premium Hosting<\/a>\u00a0<\/span>Servers along side 7.0 and the default 5.6 version.<\/h4>\n<h3>New Features Include:<\/h3>\n<ul>\n<li>Iterable pseudo type<\/li>\n<li>Closure from callable<\/li>\n<li>Square bracket syntax for list()<\/li>\n<li>Support for keys in list<\/li>\n<li>Class constant visibility<\/li>\n<li>Nullable types<\/li>\n<li>Void functions<\/li>\n<li>Catching Multiple Exception Types<\/li>\n<li>Too few arguments exception<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Please visit the official\u00a0<a href=\"http:\/\/php.net\/manual\/en\/migration71.php\">PHP 7 Documentation<\/a>\u00a0for more information on all the new features and changes.<\/p>\n<h3>How does\u00a0PHP 7 boost your website\u2019s speed?<\/h3>\n<p>PHP 7 achieves an\u00a0enormous increase in speed through improvements to the Zend Engine, opcode caching as well as an improved data structure, which reduces memory requirements and ensures more efficient memory management.<\/p>\n<p id=\"opcache-explained\">Usually, PHP scripts are compiled at runtime. In this process, part of the computing time is needed to convert the code. With OpCache, this calculation is only performed once, and the pre-compiled, machine-readable (calculated) script is saved in a cache. The script can be loaded from this cache at lightning speed as needed. In most cases, this significantly improves the speed.<\/p>\n<p>Large websites in particular can handle a considerably larger number of requests at the same time when OpCache is enabled\u2014this is especially important for company websites and e-commerce.<\/p>\n<h3 id=\"a-few-things-to-consider-before-you-switch-to-php-7\">Using\u00a0PHP 7 on your hosting<\/h3>\n<p>By default, your hosting will use PHP 5.6, if you wish to switch to use PHP 7 this can simply be done by adding a line to your\u00a0<strong><em>.htaccess<\/em><\/strong>\u00a0file in the document root of your site.<\/p>\n<pre style=\"padding: 10px;\">SetEnvIf HOST . PHP_VER=71<\/pre>\n<p>Please note there is no decimal place used, so use 56, 70 and 71 for 5.6, 7.0 and 7.1 respectively.<\/p>\n<p>PHP 7 is generally very compatible with older PHP versions. Nevertheless, we recommend testing websites, plugins and scripts with PHP 7 before employing PHP 7 in live systems.<\/p>\n<h3><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>PHP 7.1 is the new minor release of PHP, which we now\u00a0support on\u00a0the majority\u00a0of our\u00a0Shared Hosting\u00a0and all of our\u00a0Premium Hosting\u00a0Servers along side 7.0 and the default 5.6 version. New Features Include: Iterable pseudo type Closure from callable Square bracket syntax for list() Support for keys in list Class constant visibility Nullable types Void functions Catching [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":944,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[70,172,353,318,7],"tags":[413,320,391,392,18,12],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"description\" content=\"PHP 7.1 is the new minor release of PHP, which we now support on the majority of our Shared Hosting and all of our Premium Hosting Servers.\" \/>\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\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP 7.1 Now available on Shared &amp; Premium Hosting Servers - My Hosting Bubble\" \/>\n<meta property=\"og:description\" content=\"PHP 7.1 is the new minor release of PHP, which we now support on the majority of our Shared Hosting and all of our Premium Hosting Servers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/\" \/>\n<meta property=\"og:site_name\" content=\"My Hosting Bubble\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-18T17:26:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-06-09T16:43:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.myhostingbubble.com\/blog\/wp-content\/uploads\/2017\/05\/php71.png\" \/>\n\t<meta property=\"og:image:width\" content=\"727\" \/>\n\t<meta property=\"og:image:height\" content=\"268\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Barnaby Puttick\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\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\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/#primaryimage\",\"inLanguage\":\"en-GB\",\"url\":\"https:\/\/www.myhostingbubble.com\/blog\/wp-content\/uploads\/2017\/05\/php71.png\",\"contentUrl\":\"https:\/\/www.myhostingbubble.com\/blog\/wp-content\/uploads\/2017\/05\/php71.png\",\"width\":727,\"height\":268},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/#webpage\",\"url\":\"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/\",\"name\":\"PHP 7.1 Now available on Shared & Premium Hosting Servers - My Hosting Bubble\",\"isPartOf\":{\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/#primaryimage\"},\"datePublished\":\"2017-01-18T17:26:50+00:00\",\"dateModified\":\"2017-06-09T16:43:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/#\/schema\/person\/627348659d894e180d1273acd0e837e9\"},\"description\":\"PHP 7.1 is the new minor release of PHP, which we now support on the majority of our Shared Hosting and all of our Premium Hosting Servers.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.myhostingbubble.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP 7.1 Now available on Shared &#038; Premium Hosting Servers\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.myhostingbubble.com\/blog\/#\/schema\/person\/627348659d894e180d1273acd0e837e9\",\"name\":\"Barnaby Puttick\",\"sameAs\":[\"https:\/\/www.myhostingbubble.com\"],\"url\":\"https:\/\/www.myhostingbubble.com\/blog\/author\/barnabymyhostingbubble-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"description":"PHP 7.1 is the new minor release of PHP, which we now support on the majority of our Shared Hosting and all of our Premium Hosting Servers.","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\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/","og_locale":"en_GB","og_type":"article","og_title":"PHP 7.1 Now available on Shared & Premium Hosting Servers - My Hosting Bubble","og_description":"PHP 7.1 is the new minor release of PHP, which we now support on the majority of our Shared Hosting and all of our Premium Hosting Servers.","og_url":"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/","og_site_name":"My Hosting Bubble","article_published_time":"2017-01-18T17:26:50+00:00","article_modified_time":"2017-06-09T16:43:55+00:00","og_image":[{"width":727,"height":268,"url":"https:\/\/www.myhostingbubble.com\/blog\/wp-content\/uploads\/2017\/05\/php71.png","path":"\/home\/site1074\/public_html\/live\/htdocs\/blog\/wp-content\/uploads\/2017\/05\/php71.png","size":"full","id":944,"alt":"","pixels":194836,"type":"image\/png"}],"twitter_card":"summary","twitter_misc":{"Written by":"Barnaby Puttick","Estimated reading time":"1 minute"},"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\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/#primaryimage","inLanguage":"en-GB","url":"https:\/\/www.myhostingbubble.com\/blog\/wp-content\/uploads\/2017\/05\/php71.png","contentUrl":"https:\/\/www.myhostingbubble.com\/blog\/wp-content\/uploads\/2017\/05\/php71.png","width":727,"height":268},{"@type":"WebPage","@id":"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/#webpage","url":"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/","name":"PHP 7.1 Now available on Shared & Premium Hosting Servers - My Hosting Bubble","isPartOf":{"@id":"https:\/\/www.myhostingbubble.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/#primaryimage"},"datePublished":"2017-01-18T17:26:50+00:00","dateModified":"2017-06-09T16:43:55+00:00","author":{"@id":"https:\/\/www.myhostingbubble.com\/blog\/#\/schema\/person\/627348659d894e180d1273acd0e837e9"},"description":"PHP 7.1 is the new minor release of PHP, which we now support on the majority of our Shared Hosting and all of our Premium Hosting Servers.","breadcrumb":{"@id":"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.myhostingbubble.com\/blog\/2017\/01\/18\/php-7-1-now-available-shared-premium-hosting-servers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.myhostingbubble.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PHP 7.1 Now available on Shared &#038; Premium Hosting Servers"}]},{"@type":"Person","@id":"https:\/\/www.myhostingbubble.com\/blog\/#\/schema\/person\/627348659d894e180d1273acd0e837e9","name":"Barnaby Puttick","sameAs":["https:\/\/www.myhostingbubble.com"],"url":"https:\/\/www.myhostingbubble.com\/blog\/author\/barnabymyhostingbubble-com\/"}]}},"_links":{"self":[{"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/posts\/942"}],"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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/comments?post=942"}],"version-history":[{"count":22,"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/posts\/942\/revisions"}],"predecessor-version":[{"id":992,"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/posts\/942\/revisions\/992"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/media\/944"}],"wp:attachment":[{"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/media?parent=942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/categories?post=942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myhostingbubble.com\/blog\/wp-json\/wp\/v2\/tags?post=942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}