| Searching for substring with strpos vs perl-style regex | |||
| strpos x 2.07 faster | 0.0028 | preg_match | 0.0058 |
| Searching for substring with perl-style regex vs ereg | |||
| preg_match x 2.44 faster | 0.0057 | ereg | 0.0139 |
Testing PHP 5.0.0b4 Completed on Linux. Benchmark done on: 01-Mar-2004 12:40:42