Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (26 sloc) 2.74 KB

Order precedence

This is currently taken from PHP as an example.

non-associative clone new clone and new
left [ array()
right ++ -- ~ (int) (float) (string) (array) (object) (bool) @ types and increment/decrement
non-associative instanceof types
right ! logical
left * / % arithmetic
left + - . arithmetic and string
left << >> bitwise
non-associative < <= > >= comparison
non-associative == != === !== <> comparison
left & bitwise and references
left ^ bitwise
left | bitwise
left && logical
left || logical
left ? : ternary
right = += -= *= /= .= %= &= |= ^= <<= >>= => assignment
left and logical
left xor logical
left or logical
left , many uses
Something went wrong with that request. Please try again.