I don't know much about PHP internals but I guess a constant would be more efficient. Also static variables such as this one tend to create memory leaks so I prefer avoiding them, but not a big deal here anyway.