PHP preprocessor solution

```
$ php solved/php/kkopachev/test.php 
Test
gal
goal
gooal
goooal
gooooal
8
Done
```