PHP primitives behaving like grown up objects