PHP examples and testing