<?php class Foo { function bar() { echo "Hi!\n"; }} $c = Foo::class;$m = 'bar';$c::$m(); echo "Done\n";
Standard input is empty
Hi! Done
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!