note 111546 added to language.types.null
| From: | mehdian dot y at gmail dot com | Date: | Sat, 02 Mar 2013 22:20:02 +0000 |
| Subject: | note 111546 added to language.types.null | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193777@lists.php.net to get a copy of this message | ||
I've tested @Jame's code multiple times and received these results :
0.00082302093505859
0.00029587745666504
0.00082707405090332
0.00025510787963867
0.00080990791320801
0.00028610229492188
0.0008089542388916
0.00026202201843262
0.0003819465637207
0.00012111663818359
0.00095200538635254
0.00026512145996094
0.0003819465637207
0.0001380443572998
0.00080990791320801
0.00026202201843262
It seems that === is 4x in average faster than is_null function, not 30x !
----
Server IP: 69.147.83.199
Probable Submitter: 2.184.157.43
----
Manual Page -- http://php.net/manual/en/language.types.null.php
Edit -- https://master.php.net/note/edit/111546
Del: integrated -- https://master.php.net/note/delete/111546/integrated
Del: useless -- https://master.php.net/note/delete/111546/useless
Del: bad code -- https://master.php.net/note/delete/111546/bad+code
Del: spam -- https://master.php.net/note/delete/111546/spam
Del: non-english -- https://master.php.net/note/delete/111546/non-english
Del: in docs -- https://master.php.net/note/delete/111546/in+docs
Del: other reasons-- https://master.php.net/note/delete/111546
Reject -- https://master.php.net/note/reject/111546
Search -- https://master.php.net/manage/user-notes.php