Iterator builders for PHP