<?php $a = 'bar';$b = &$a;$a = 'baz';var_dump($b);
Standard input is empty
string(3) "baz"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!