PHP implementation of the Greed Kata