| Searching for substring with strpos vs perl-style regex | |||
| strpos x 2.29 faster | 0.0017 | preg_match | 0.0039 |
| Searching for substring with perl-style regex vs ereg | |||
| preg_match x 2.29 faster | 0.0024 | ereg | 0.0055 |
Testing PHP 4.3.3 Completed on WINNT. Benchmark done on: 29-Feb-2004 15:21:27