3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Cache { private static $URL_CACHE; public function cacheUrl($url, $entityId) { echo '<br>caching '.$url.' as '.$entityId . '<br />'; self::$URL_CACHE[$url]=$entityId; echo '<br>Cache content:<br>'; foreach (self::$URL_CACHE as $key => $value) { echo 'Key: '.$key.' Value: '.$value.'<br />'; } } } $cache = new Cache(); $cache->cacheUrl('uri1', 'ent1'); $ya_cache = new Cache(); $ya_cache->cacheUrl('uri2', 'ent2');
Output for git.master, git.master_jit, rfc.property-hooks
<br>caching uri1 as ent1<br /><br>Cache content:<br>Key: uri1 Value: ent1<br /><br>caching uri2 as ent2<br /><br>Cache content:<br>Key: uri1 Value: ent1<br />Key: uri2 Value: ent2<br />

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
26.9 ms | 405 KiB | 5 Q