Programming patterns study (PHP version)