PHP cannot solve the "collaborative editor problem" easily because it spawns a new process for each visitor of a site so the memory space is not shared meaning you would have too much latency from database read/writes.
So short answer, no, PHP is not going to solve your problem. Why not just install Etherpad?