A mystery, isn't it? But it's bigger than that. It's not just echo that won't do this, its anything. Just writing this gives me an error:
<?php
new bear->sleep();
?>
PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /Users/Verdagon/Desktop/perello/server/date.php on line 2
In java, we can write new Bear().sleep() and it will work just fine. I wonder why PHP can't do that? I run into this all the time in my php code... I don't like making unnecessary variables, y'know?