Only the PC versions of all three first games, the PS1 versions of the first two games, and both console (with the PC version being the same) and GBA versions of the fourth game enable an indefinite amount of beans collected past 250 onwards.
The fourth game also allows beans collected by Harry during the Triwizard tasks to improve his score. The beans in the console version, however, are always orange in this case.
While usually the GBC/GBA versions of the first three games only treat the beans as healing items (with the GBA version of Chamber of Secrets only treating them as bonus collectables for one part of the game), both versions of Goblet of Fire are the only Harry Potter games with the beans being both currency and healing items (in the case of the red beans only for console and PC versions Wholesale Cigarettes Online, and white beans for GBA) Cheap Cigarettes Online USA.