I'd say the way it works in PHP7 is the right way. It's bad to implicitly change the way operators work depending whether operand is referenced anywhere or not.
This is the best thing about PHP7 being completely rewritten: no clumsy/bug-driven-development v4/v5 code will work.