<?php class A { public function __toString() { return __METHOD__; }} class B extends A {} echo new B;
Standard input is empty
A::__toString
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!