Top "Php-7" questions

PHP 7 is the successor to PHP 5.6, it was released on December 3, 2015.

Does codeigniter 3 support PHP 7?

In the docs of CodeIgniter it states, PHP version 5.4 or newer is recommended. I looked on forums etc. and wasn't …

codeigniter php-7
Void as return type

I was testing return types with PHP 7. I've created a simple script to test return types of PHP 7: <?php …

php void return-type php-7
PHP 7 interfaces, return type hinting and self

UPDATE: PHP 7.4 now does support covariance and contravariance which addresses the major issue raised in this question. I have run …

php interface return-type php-7 type-hinting
How to select PHP version 5 and 7 per virtualhost in Apache 2.4 on Debian?

Would it be possible to run PHP 7 and PHP 5 simultaneously in Apache 2.4 on Debian 9? I would like to be able …

php apache debian virtualhost php-7
Silence "Declaration ... should be compatible" warnings in PHP 7

After upgrade to PHP 7 the logs almost choked on this kind of errors: PHP Warning: Declaration of Example::do($a, $…

php php-7 php-7.2 php-7.1 php-7.0
Function return type hinting for an array of objects in PHP7

I am very happy with the new features in PHP 7. But I am confused on how to return an array …

php php-7
Parse error: Invalid numeric literal

I have the following error while running this code below: Code: <?php $a = array(00001, 00008, 00009, 00012); print_r($a); ?> Error: …

php arrays php-7 octal
How to install php extension using pecl for specific php version, when several php versions installed in system?

I have installed both php5.6 and php7.0 from PPA on Ubuntu according to this manual http://lornajane.net/posts/2016/php-7…

php ubuntu php-7 php-extension pecl
php 7 unable to initialize sqlsrv

I searched all day to find out a solution for sqlsrv dll on php 7 VC14 x64 Thread Safe and i …

dll sqlsrv php-ini php-7
PHP7 CLI attempts to load xdebug twice - "Cannot load Xdebug - it was already loaded"

After upgrading Ubuntu from 14.04 to 16.04, PHP CLI started complaining about xdebug: $ php -v Cannot load Xdebug - it was already …

php xdebug php-7