{"id":26532,"date":"2015-12-07T20:13:58","date_gmt":"2015-12-07T18:13:58","guid":{"rendered":"http:\/\/blog.superhosting.bg\/en\/?p=26532"},"modified":"2022-04-02T11:13:10","modified_gmt":"2022-04-02T08:13:10","slug":"php-7-superhosting","status":"publish","type":"post","link":"https:\/\/blog.superhosting.bg\/en\/php-7-superhosting.html","title":{"rendered":"The New Major PHP Version is Released \u2013 7.0"},"content":{"rendered":"\n<p>The newest major PHP version was officially released a few days ago. <a href=\"https:\/\/w3techs.com\/technologies\/details\/pl-php\/all\/all\" target=\"_blank\" rel=\"noopener\">The latest version 7 of the most common web language<\/a> for building&nbsp;dynamic <a href=\"https:\/\/blog.superhosting.bg\/en\/website-how-it-works.html\" target=\"_blank\" rel=\"noopener\">websites<\/a> \u2013 <a href=\"https:\/\/www.php.net\/archive\/2015.php\" target=\"_blank\" rel=\"noopener\">PHP<\/a> is now available.<\/p>\n\n\n\n<p class=\"tipsupport04\">PHP 7 is now supported for all hosting services offered by <a href=\"https:\/\/en.superhosting.bg\" target=\"_blank\" rel=\"noopener\">SuperHosting.BG<\/a>.<\/p>\n\n\n\n<p>More than 20 years have passed since PHP&#8217;s first web appearance <a href=\"https:\/\/www.php.net\/manual\/en\/history.php.php\" target=\"_blank\" rel=\"noopener\">back in 1994<\/a>. During the first 10 years, 5 major versions of <a href=\"https:\/\/groups.google.com\/forum\/\" target=\"_blank\" rel=\"noopener\">PHP Tools v.1.0<\/a> have&nbsp;been released until <a href=\"https:\/\/news-web.php.net\/php.announce\/50\" target=\"_blank\" rel=\"noopener\">PHP 5<\/a> appeared in 2004. And ever since, there has not been any major PHP release. This does not include the experimental PHP 6 which never got a stable release. In 2013 a new project for developing a main version was initiated. After a lot of time, efforts, numerous modifications, improvements, fixes and innovations, finally we can see a completed next major version of <strong>PHP 7<\/strong>.<\/p>\n\n\n\n<p>PHP 7.0 promises a <strong>2x faster performance as well as lower memory usage<\/strong> compared to PHP 5.6. This definitely will have a very positive impact&nbsp;on all websites based on PHP.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What&#8217;s new in PHP 7?<\/h2>\n\n\n\n<p>PHP 7 emphasizes on removing <a href=\"https:\/\/help.superhosting.bg\/deprecated-functions-options.html\" target=\"_blank\" rel=\"noopener\">deprecated<\/a> features from previous versions,&nbsp;improving the consistency of the language itself and especially the&nbsp;performance.<\/p>\n\n\n\n<p><b>Lower Memory Usage <\/b><\/p>\n\n\n\n<p>PHP 7 is optimized in the way <a href=\"https:\/\/nikic.github.io\/2015\/06\/19\/Internal-value-representation-in-PHP-7-part-2.html\" target=\"_blank\" rel=\"noopener\">it represents internal values<\/a> and data structures. Arrays (for example <a href=\"https:\/\/nikic.github.io\/2014\/12\/22\/PHPs-new-hashtable-implementation.html\" target=\"_blank\" rel=\"noopener\">hashtable<\/a>) use about 3 times less memory compared to PHP 5.6.<\/p>\n\n\n\n<p><b>Speed boost<\/b><\/p>\n\n\n\n<p>The speedup of PHP code executed originates from the reduced memory usage combined with the improvements in the internal data processing. In other words, PHP 7 comes with a faster and rewritten engine \u2013 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Zend_Engine\" target=\"_blank\" rel=\"noopener\">Zend Engine<\/a> version 3. This is the engine that literally drives (interprets) the PHP code.<\/p>\n\n\n\n<p><b>Improvements and Innovations in The Language Itself<\/b><\/p>\n\n\n\n<p>The new Zend Engine version is based on the <a href=\"https:\/\/wiki.php.net\/phpng\" target=\"_blank\" rel=\"noopener\">PHPNG<\/a> project (PHP Next&nbsp;Generation) which unleashes the huge scripting language improvements.<\/p>\n\n\n\n<p>Here are a few of the innovations:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/wiki.php.net\/rfc\/size_t_and_int64_next\" target=\"_blank\" rel=\"noopener\">consistent 64-bit support<\/a>;<\/li><li><a href=\"https:\/\/wiki.php.net\/rfc\/removal_of_dead_sapis_and_exts\" target=\"_blank\" rel=\"noopener\">removal of completely unavailable or unsupported for a long time server interfaces (<\/a><a title=\"Server Application Programming Interface - Wikipedia\" href=\"https:\/\/en.wikipedia.org\/wiki\/Server_Application_Programming_Interface\" target=\"_blank\" rel=\"noopener\">SAPI<\/a><a href=\"https:\/\/wiki.php.net\/rfc\/removal_of_dead_sapis_and_exts\" target=\"_blank\" rel=\"noopener\">) and extensions<\/a>;<\/li><li>adding of new operators: <a href=\"https:\/\/wiki.php.net\/rfc\/isset_ternary\" target=\"_blank\" rel=\"noopener\">null coalescing operator (??)<\/a>,<br><a href=\"https:\/\/wiki.php.net\/rfc\/combined-comparison-operator\" target=\"_blank\" rel=\"noopener\">combined comparison operator (&lt;=&gt;)<\/a>;<\/li><li><a href=\"https:\/\/wiki.php.net\/rfc\/scalar_type_hints_v5\" target=\"_blank\" rel=\"noopener\">Scalar Type Declarations<\/a>;<\/li><li><a href=\"https:\/\/wiki.php.net\/rfc\/return_types\" target=\"_blank\" rel=\"noopener\">Return Type Declarations<\/a>;<\/li><li><a href=\"https:\/\/wiki.php.net\/rfc\/anonymous_classes\" target=\"_blank\" rel=\"noopener\">Anonymous Classes<\/a>.<\/li><\/ul>\n\n\n\n<p><b>PHP 7 Benchmarks<\/b><\/p>\n\n\n\n<p>Since the beginning of the PHPNG project there have been <a href=\"https:\/\/wiki.php.net\/phpng\" target=\"_blank\" rel=\"noopener\">regular performance benchmarks<\/a>.&nbsp;The results are available here:&nbsp;<a href=\"https:\/\/docs.google.com\/spreadsheets\/d\/1qW0avj2eRvPVxj_5V4BBNrOP1ULK7AaXTFsxcffFxT8\/edit#gid=1534868447&amp;vpid=A1\" target=\"_blank\" rel=\"noopener\">PHP 7.0 benchmarks<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PHP 7 at SuperHosting.BG? How to activate PHP 7?<\/h2>\n\n\n\n<p>PHP 7 is supported for <a href=\"https:\/\/en.superhosting.bg\/web-hosting-compare-hosting-plans.php\" target=\"_blank\" rel=\"noopener\">Shared hosting<\/a>, <a href=\"https:\/\/en.superhosting.bg\/web-hosting-page-servers-vps.php\" target=\"_blank\" rel=\"noopener\">Virtual servers<\/a>,&nbsp;<a title=\"Managed VPS\" href=\"https:\/\/en.superhosting.bg\/web-hosting-common-managed-vps.php\" target=\"_blank\" rel=\"noopener\">Managed VPS<\/a>) and&nbsp;<a href=\"https:\/\/en.superhosting.bg\/web-hosting-page-servers-dedicated.php\" target=\"_blank\" rel=\"noopener\">Dedicated servers<\/a>&nbsp;offered by SuperHosting.BG.<\/p>\n\n\n\n<p>If you have a <a href=\"https:\/\/en.superhosting.bg\/web-hosting-compare-hosting-plans.php\" target=\"_blank\" rel=\"noopener\">shared hosting<\/a> account or <a title=\"Managed VPS\" href=\"https:\/\/en.superhosting.bg\/web-hosting-common-managed-vps.php\" target=\"_blank\" rel=\"noopener\">Managed VPS<\/a> you can activate PHP 7 through cPanel &nbsp;-&gt; <strong>PHP Manager by SuperHosting<\/strong>.<\/p>\n\n\n\n<p>Upon the virtual private server service, customers can manually install and activate PHP 7.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Is PHP 7 compatible with WordPress, Joomla!, and Drupal?<\/h2>\n\n\n\n<p><strong>WordPress<\/strong><br>For the last few months, WordPress team has been following closely the PHP 7 development and actively comparing and testing every introduced change. Despite not yet officially declared, WordPress is ready&nbsp;and <a href=\"https:\/\/make.wordpress.org\/core\/tag\/php7\/\" target=\"_blank\" rel=\"noopener\">PHP 7 compatible<\/a> (the latest versions).<\/p>\n\n\n\n<p><strong>Joomla!<\/strong><br>There is still no official information, but <a href=\"http:\/\/forum.joomla.org\/viewtopic.php?f=9&amp;t=898600\" target=\"_blank\" rel=\"noopener\">according to developers<\/a> Joomla! 3.5 will be PHP 7 compatible.<\/p>\n\n\n\n<p><strong>Drupal<\/strong><br>Drupal 8 is fully compatible with PHP 7.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why the newest version is called PHP 7, but not PHP 6?<\/h2>\n\n\n\n<p>There is actually a PHP 6 version which never made it to a stable release.<\/p>\n\n\n\n<p>PHP 6 exists as an experimental version, but it never made it to an official stable release. The PHP 6 project started in 2005, but it was effectively abandoned in 2010, because of <a href=\"http:\/\/www.slideshare.net\/andreizm\/the-good-the-bad-and-the-ugly-what-happened-to-unicode-and-php-6\" target=\"_blank\" rel=\"noopener\">implementation difficulties<\/a> of <a href=\"https:\/\/en.wikipedia.org\/wiki\/PHP#PHP_6_and_Unicode\" target=\"_blank\" rel=\"noopener\">Unicode support<\/a>.<\/p>\n\n\n\n<p>There are a lot of existing documents, help information and whole books for PHP 6 which could have led to confusion with the future main PHP version.<\/p>\n\n\n\n<p>After <a href=\"https:\/\/wiki.php.net\/rfc\/php6\" target=\"_blank\" rel=\"noopener\">a voting<\/a>, the latest stable PHP version was voted to be 7 in order to avoid confusion with the already existing experimental PHP 6 version.<\/p>\n\n\n\n<p class=\"tipsupport03\"><strong>Note:<\/strong> There are PHP modules that are not 100% compatible with PHP 7 yet. The following modules &#8211; ZendGuardLoader, Memcache\/d and imagick will be available for PHP 7 after their update.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP 7.0 promises a 2x faster performance as well as lower memory usage compared to PHP 5.6. This will have a very positive impact on all websites based on PHP.<\/p>\n","protected":false},"author":16,"featured_media":53667,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[18],"tags":[212],"class_list":{"0":"post-26532","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-superhosting-news","8":"tag-improvements"},"aioseo_notices":[],"modified_by":"\u041c\u0430\u0434\u043b\u0435\u043d\u0430 \u041c\u0435\u0442\u043e\u0434\u0438\u0435\u0432\u0430","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts\/26532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/comments?post=26532"}],"version-history":[{"count":10,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts\/26532\/revisions"}],"predecessor-version":[{"id":65465,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts\/26532\/revisions\/65465"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/media\/53667"}],"wp:attachment":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/media?parent=26532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/categories?post=26532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/tags?post=26532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}