$test->myFunc()->displayStuff();
You can't call the method directly in php4. You first have to assign the return value of myFunc() to a variable and then call your method on that. Coming from java that annoyed me at first. (This does work in php5 though.)
var $hello = new class2();
I doubt that works. You can only assign constant values to class properties here. This should be in the constructor instead.
return $hello;
I think you meant $this->hello.