<?php $foo = 0; $bar = function() use (&$foo) { return ++ $foo; }; $a = $bar(); $b = $bar(); $c = $bar(); var_dump($a ?? $b ?? $c, $foo );
You have javascript disabled. You will not be able to edit any code.