The Wikipedia article on Fractions says:
If, in a complex fraction, there is no unique way to tell which fraction lines takes precedence, then this expression is improperly formed, because of ambiguity. So 5/10/20/40 is not a valid mathematical expression, because of multiple possible interpretations [...]
The first sentence makes sense, but does the second sentence follow? WolframAlpha interprets that input without issue, as do popular programming languages.
Is the order of operations not accepted in formal math?
Yes, but that's because Wolfram Alpha does that by convention. When you type something like that in, you're probably "confusing" WA, and so it has to use its last resort, which is to apply the operations in the order in which they are typed. Even though WA can interpret it, it's still bad mathematics to write a complex fraction that way if you want anyone to know what you mean.