3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { private $bar; function __construct($a){ $this->bar = $a; } } $a = new Foo('lol'); var_dump((array)$a);
Output for 7.1.0
array(1) { ["Foobar"]=> string(3) "lol" }