标签: php operators
在PHP文档中,它说:Operators of equal precedence that are non-associative cannot be used next to each other, for example 1 < 2 > 1 is illegal in PHP.
1 < 2 > 1
然而,即使clone和new具有相同的优先权并且是非关联的,这似乎也有效:
clone
new
var_dump(clone new stdClass()); // output: object(stdClass)#2 (0) {}
为什么这可能?