WordPress memory limit intval(WP_MEMORY_LIMIT)

This will be useful if you want to check if there will be enough memory to run your script, hence prevent possible 500 error

if ( intval(WP_MEMORY_LIMIT) < 96 ){

print ‘<div>
<p>’Recommended memory limit should be at least 96MB. ‘</p>
</div>’;

}