Valkyria no online
LBP lots of online
Valkyria 40+ hours of gameplay
LBP I would say 8 hours(rough estimate) to finish all the levels but if you try to get all the unlockables it can last quite longer
If you have online and like to play with your friends I highly recommend LBP but if you don't really care about online than go with Valkyria.