PHP Classes

File: tests/profile.php

Recommend this page to a friend!
  Classes of Lars Moelleken   PHP URLify   tests/profile.php   Download  
File: tests/profile.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP URLify
Transliterate non-ASCII characters
Author: By
Last change: [+]: optimize performance v2.2
[+]: optimize performance
Date: 10 days ago
Size: 331 bytes
 

 

Contents

Class file image Download
<?php

require_once __DIR__ . '/../vendor/autoload.php';

$start = \microtime(true);
for (
$i = 0; $i <= 10000; ++$i) {
   
$str = '<h2>testing<br />öäüöäüöäüöäüöäüöäüöäüöäüöäüöäüöäüöäüöäü</h2>';
   
$str_new = \voku\helper\URLify::filter($str);
}
echo
'time: ' . (\microtime(true) - $start);