3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public function __toString() { return spl_object_hash($this); } } $a[(string) new Foo()] = 'bar'; var_dump($a);