SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- foreach (['stringCensorSlow', 'stringCensorFast'] as $func) {
- $time = microtime(true);
- for ($i = 0; $i < 10000; $i++) {
- $func($string, $censor);
- }
- $time = microtime(true) - $time;
- echo "{$func}() took $time\n";
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.