| Searching for substring with strpos vs perl-style regex | |||
| strpos x 1.45 faster | 0.0560 | preg_match | 0.0812 |
| Searching for substring with perl-style regex vs ereg | |||
| preg_match x 1.80 faster | 0.0828 | ereg | 0.1487 |
Testing PHP 4.0.6 Completed on Linux. Benchmark done on: 01-Mar-2004 09:07:59