Your benchmark is totally broken.
When your _regex() function runs the first time, it complete destroys $string; and everytime after that the regex is operating on an empty string and thus runs very quicly. Ditto, every other test that runs after the first run of _regex().
In reply to Re^3: Performance problems on splitting long strings
by BrowserUk
in thread Performance problems on splitting long strings
by Laurent_R
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |