$bar = \'BAR\'; apc_store(\'foo\', $bar); var_dump(apc_fetch(\'foo\'));
Within one request this work.
Now If i try to do a var_dump(a
var_dump(a
Probably you are running PHP over CGI (instead of FastCGI which you ought to use) - see my answer in another question why APC doesn't work if PHP is running over CGI.