<?php
class Test {
        static function staticFunc() {
                self::showThis();
        }
        function showThis() {
                echo '$this is ' . ($this == null ? 'null' : get_class($this)) . "\n";
        }
        function semiStaticFunc() {
                self::showThis();
        }
        function testFunc() {
                self::staticFunc();
                self::semiStaticFunc();
        }
}
$instance = new Test();
$instance->testFunc();