Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | * @Assert("mode(variant.time.avg) < 120 microseconds +/- 10%") |
||
42 | */ |
||
43 | public function benchUtfStringRandomAccessWithUnicode(): void |
||
44 | { |
||
45 | $text = 'abcdefghijklmnopqrstuvwxyz |
||
46 | áéíóúýěřťǔǐǒǎšďȟǰǩľžčǚň |
||
47 | 🦋😄😃😀😊😉😍😘😚😗😂👿😮😨😱😠😡😤😖😆😋👯 |
||
48 | P\xf8\xed\xb9ern\xec \xbelu\xbbou\xe8k\xfd k\xf3d \xfap\xecl \xef\xe1belsk\xe9 k\xf3dy |
||
49 | xℤⅿↈⅬ⅀ↆℜℝ⅗ℾ℧ⅰℓⅯⅵⅣ⅒21⅞'; |
||
50 | |||
51 | $str1 = new UtfString($text); |
||
52 | $str1->offsetGet(10); |
||
53 | $str1->offsetGet(100); |
||
54 | $str1->offsetGet(20); |
||
55 | $str1->offsetGet(0); |
||
56 | } |
||
57 | } |
||
58 |