3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface CacheInterface { public function get(string $key): ?string; public function set(string $key, array $value); } class ApcCache implements CacheInterface { private $client; public function __construct($client) { $this->client = $client; } public function get(string $key):?string { $ret = apc_fetch($key); if (empty($ret)) { return null; } return $ret; } }