This example demonstrates that when assigning a reference to a static variable, it' s not remembered when you call the get_instance_ref() function a second time.
?php function test() {static $count = 0; $count++; echo $count; if ($count 10) {test();} $count--;}?