PHP sandbox, patterns, iterators