note 117344 added to function.is-null
| From: | contact dot 01834e2c at renegade334 dot me dot uk | Date: | Mon, 25 May 2015 06:57:15 +0000 |
| Subject: | note 117344 added to function.is-null | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-202658@lists.php.net to get a copy of this message | ||
In PHP 7 (phpng), is_null is actually marginally faster than ===, although the performance
difference between the two is far smaller.
PHP 5.5.9
is_null - float(2.2381200790405)
=== - float(1.0024659633636)
=== faster by ~100ns per call
PHP 7.0.0-dev (built: May 19 2015 10:16:06)
is_null - float(1.4121870994568)
=== - float(1.4577329158783)
is_null faster by ~5ns per call
----
Server IP: 149.255.111.133
Probable Submitter: 197.225.192.215
----
Manual Page -- http://php.net/manual/en/function.is-null.php
Edit -- https://master.php.net/note/edit/117344
Del: integrated -- https://master.php.net/note/delete/117344/integrated
Del: useless -- https://master.php.net/note/delete/117344/useless
Del: bad code -- https://master.php.net/note/delete/117344/bad+code
Del: spam -- https://master.php.net/note/delete/117344/spam
Del: non-english -- https://master.php.net/note/delete/117344/non-english
Del: in docs -- https://master.php.net/note/delete/117344/in+docs
Del: other reasons-- https://master.php.net/note/delete/117344
Reject -- https://master.php.net/note/reject/117344
Search -- https://master.php.net/manage/user-notes.php