Code Kata in PHP