<?php
abstract class A {
public abstract static function b();
}
class AlaSa_lope extends A {
public function alasa_lope(){
var_dump('omg');
}
public static function b(){
return 'ok';
}
}
var_dump(new AlaSa_lope);
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AlaSa_lope has a deprecated constructor in /in/dXTrV on line 5
string(3) "omg"
object(AlaSa_lope)#1 (0) {
}