An immutable Cons cell based linked list in PHP