3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Obj { public $aa = 123; public function foo() { return 1; } public function __construct() { var_dump(self::class); } } $bar = new Obj; var_dump((array)$bar);
Output for 7.3.0rc3
string(3) "Obj" array(1) { ["aa"]=> int(123) }