data structures implemented in php