stone PHP code