3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ZeroDayTechnique { public function key($action = 'get', $value = null) { static $hidden = null; switch ($action) { case 'get': return $hidden; case 'set': $hidden = $value; default: throw new Exception('Wut in da hell'); } } } $x = new ZeroDayTechnique; $x->key('set', random_bytes(32)); var_dump(bin2hex($x->key('get'))); var_dump($x);

preferences:
35.01 ms | 402 KiB | 5 Q