viewstepping and simple generator in php