View difference between Paste ID: b5iX27iE and iY9MqceE
SHOW: | | - or go back to the newest paste.
1-
private static function test_StringManipulation($count = 130000) {
1+
<?php
2-
  $time_start = microtime(true);
2+
$url = $_SERVER[‚REQUEST_URI’];
3-
  $stringFunctions = array(„addslashes”, „chunk_split”, „metaphone”,
3+
if(substr($url, -1) == ‚/’ && $url != ‚/’ ) {
4-
  
4+
$addr = substr($url, 0, -1);
5-
  „strip_tags”, „md5”, „sha1”, „strtoupper”, „strtolower”, „strrev”, „strlen”, „so-
5+
header(„HTTP/1.1 301 Moved Permanently”);
6-
  undex”, „ord”);
6+
header(„Location: http://nazwadomeny.pl/$addr”);
7-
  
7+
}
8-
  foreach ($stringFunctions as $key => $function) {
8+
?>