<?php class Test { public function method() { echo 'hello'; }} (new Test())->method();
Standard input is empty
hello
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!