3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SessionTest implements \SessionHandlerInterface { public function __construct() { session_set_save_handler($this, true); } public function open(string $save_path, string $name): bool { return true; } public function close(): bool { return true; } public function read(string $session_id): string { return ''; } public function write(string $session_id, string $session_data): bool { return true; } public function destroy(string $session_id): bool { return true; } public function gc(int $maxlifetime): bool { return true; } } $SessionTest = new SessionTest();

preferences:
30.94 ms | 402 KiB | 5 Q