Вы можете сделать что-то вроде:
// 123456789012345612123456
$str = '000001010110000111000111';
// 21 33 3 7
$id = base_convert(substr($str, 0, 10), 2, 10);
$part = base_convert(substr($str, 10, 6), 2, 10);
$setting = base_convert(substr($str, 16, 2), 2, 10);
$increment = base_convert(substr($str, 18, 6), 2, 10);
echo "id = $id\npart = $part\nsetting = $setting\nincrement = $increment\n";
Вывод:
id = 21
part = 33
setting = 3
increment = 7