$ar = [];
for($i = 0; $i < 50000; $i++){
if ($redis->getBit('test', $i) == 1){
$ar[] = $i;
}
}
$redisProducts = $redis->get('test');
$ar = [];
for($i = 0; $i < 50000; $i++){
if ($redisProducts & pow(2, $i)){
$ar[] = $i;
}
}