Re: [PHP4BETA] ereg() vs. preg_match()
| From: | Andrei Zmievski | Date: | Wed, 19 Apr 2000 13:32:41 +0000 |
| Subject: | Re: [PHP4BETA] ereg() vs. preg_match() | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-13735@lists.php.net to get a copy of this message | ||
On Tue, 18 Apr 2000, Andi Gutmans wrote:
> Hey,
>
> Any idea how these two compare performance wise? Which is faster and is it
> significant?
I tested the ereg vs. preg functions a while back when I was writing the
extension, and preg functions seemed to be much faster. Of course, they
are also more powerful and allow you to do way more stuff than ereg - so
benchmarking them against each other would need to involve only simple
cases.
Try it yourself in non-debug mode.
-Andrei
"C combines all the power of assembly language with
all the ease of use of assembly language" -- trad