Immutable datastructures for php