<?php class Foo { public function __debugInfo() { return ['foo' => 'bar']; } } var_dump(json_encode(new Foo()));
You have javascript disabled. You will not be able to edit any code.