preg_grep
strlen
substr
文字列のバイト長を返します。
strlen(string $string): int
下記の値を入力するとサンプルに即時反映されます。
echo
echo strlen("Hello"); // 5