ORLANDO - A judge has sentenced Casey Anthony to four years in prison for lying to investigators but says she can go free in late July or early August because she has already served nearly three years in jail and has had good behavior.