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) { [0]=> object(Foo)#1 (1) { ["bar":"Foo":private]=> string(3) "lol" } }