= $icount || $cmap2[$sumup][$nums[$now]]===true){ return; } $cmap2[$sumup][$nums[$now]] = true; $addnum = ($sumup^$nums[$now]); _nextVal($now+1,$addnum); _nextVal($now+1,$sumup); } _nextVal(0,0); echo count($cmap);