Simple project executing function using array_map and foreach