Loop test in php