The true maximum is ultimately up to the host – they can impose whatever limits they wish. But even so, you can try with WP_MEMORY_LIMIT
, which is the memory limit WordPress sets at runtime for any given request.
WP_MAX_MEMORY_LIMIT
is only applied in certain situations, either for administrators in the backend (users with the capability manage_options
), or for image resizing/other intensive operations.