1 2 3 4 5 6 7
<?php $a = 'test'; $b = &$a; $b = unserialize(serialize($b)); $a = 'failed'; echo $b; //returns 'test'
1
failed