StringCalculator Kata in PHP