- Output for 5.6.0 - 5.6.24, 7.0.0 - 7.0.9
- Parse error: syntax error, unexpected 'test1' (T_STRING), expecting variable (T_VARIABLE) in /in/dKcAL on line 4
Process exited with code 255.
<?php
class test {
public test1;
public test2;
protected test3;
private test4;
public function method1() {}
public function method2() {}
protected function method3() {}
private function method4() {}
}
echo count( new test );