- var_dump: documentation ( source)
- bin2hex: documentation ( source)
<?php
$str = 'this is é a test of а system';
$it = IntlBreakIterator::createCharacterInstance();
$it->setText($str);
foreach($it->getPartsIterator() as $char) {
var_dump(bin2hex($char));
}