<?php
class Test
{
function test()
{
var_dump($this);
}
}
$reflection_class = new ReflectionClass('Test');
var_dump($reflection_class->getMethod('test')->isStatic());
$test = new Test();
$test->test();
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Test has a deprecated constructor in /in/1NMMN on line 2
bool(false)
object(Test)#2 (0) {
}
object(Test)#2 (0) {
}