| Searching for substring with strpos vs perl-style regex | |||
| strpos x 1.77 faster | 0.0031 | preg_match | 0.0055 |
| Searching for substring with perl-style regex vs ereg | |||
| preg_match x 2.62 faster | 0.0061 | ereg | 0.0160 |
Testing PHP 4.3.3 Completed on Linux. Benchmark done on: 01-Mar-2004 12:36:01