<?php
error_reporting(0);
class a {
function a() {
echo "CONSTRUCTOR CALLED\r\n";
}
function b($var) {
return $var . 'x';
}
}
class c
{
static function w()
{
echo "w".$PHP_EOL;
}
public function f()
{
$this::w();
echo "f".$PHP_EOL;
}
}
c::f();
$cc = new c();
$cc->f();
//print_r(array_map(array('a', 'b'), array('a', 'b')));
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; a has a deprecated constructor in /in/lqLAi on line 5
Process exited with code 255.