<?php function test($obj){ static $c; var_dump($c); $c = $c ? $c : function(){ return 'baz'; }; $obj->store = $c; } test($x = new stdclass); test($y = new stdclass); var_dump($x === $y);
You have javascript disabled. You will not be able to edit any code.