class Testing { public static function test() { print __CLASS__; } } class Testing2 extends Testing{ } Testing::test(); Testing2::test();