Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. foreach (['stringCensorSlow', 'stringCensorFast'] as $func) {
  2. $time = microtime(true);
  3. for ($i = 0; $i < 10000; $i++) {
  4. $func($string, $censor);
  5. }
  6. $time = microtime(true) - $time;
  7. echo "{$func}() took $time\n";
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement