<?php class a{ static public $b; static public function init(){ (self::$b)(); self::$b=function(){}; } } a::$b=function(){echo 'Here I do very heavy stuff, but will happen only in the first time I call init()';}; for($i=0;$i<3;$i++){ a::init(); }
You have javascript disabled. You will not be able to edit any code.