All Loops with example and version in PHP