3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?hh class Request { private $data = Map {}; function data() { return $this->data->toImmMap(); } } $request = new Request(); $request->data()["foo"] = "bar"; var_dump($request->data());
based on 4eWnn
Output for 5.4.0 - 5.4.35
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/lm8Ye on line 3
Process exited with code 255.