bar(); return ['foo' => 'bar']; } } phpinfo(); $test = new Test(); $test->foo();