run code in 200+ php & hhvm versions
Bugs & Features
<?php class Session { private $data; function __construct() { session_id() or session_start(); if (!isset($_SESSION['test'])) $_SESSION['test'] = array(); $this->data = &$_SESSION['test']; } function set($key, $value) { $this->data[$key] = $value; }; function get($Key) { return $this->data[$key]; }; } $s = new Session(); $s->set('foo', 'coins'); $s->set('ix', 'janz23'); var_dump($_SESSION);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)