3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class h extends stdClass { public $data = array(); function __set($name, $val) { $this->data[$name] = $val; } function __debugInfo() { return $this->data; } } $cl = new h(); $id = "373556941768884244"; $cl->$id = 'hallo'; var_dump($cl);
based on hWZ1a
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.2.6
object(h)#1 (1) { [373556941768884244]=> string(5) "hallo" }