What PHP needs to learn from Java