<?php class x { function test() { static $x = 0; return ++$x; } } $x = new x(); var_dump($x->test()); $y = new x(); var_dump($y->test());
You have javascript disabled. You will not be able to edit any code.