note 125313 deleted from function.array-key-exists by crell
| From: | crell@php.net | Date: | Wed, 29 Jun 2022 20:38:36 +0000 |
| Subject: | note 125313 deleted from function.array-key-exists by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218743@lists.php.net to get a copy of this message | ||
Note Submitter: php at vxvr dot de
----
While Nik Tang's remark about the performance increase when using isset() first for PHP <=
7.3 is true, it is no longer valid for 7.4 and 8.0.
array_key_exists() is now as fast as isset() and the use of both is now slower for cases where the
key is zero or actually does not exist.