SHARE
TWEET

Untitled

a guest Oct 21st, 2019 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
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. OK, I Understand
 
Top