note 111546 rejected from language.types.null by googleguy
| From: | googleguy@php.net | Date: | Sun, 03 Mar 2013 00:00:20 +0000 |
| Subject: | note 111546 rejected from language.types.null by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193778@lists.php.net to get a copy of this message | ||
Note Submitter: mehdian dot y at gmail dot com
----
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 !