- Output for 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
- Deprecated: Creation of dynamic property A::$bc is deprecated in /in/Mg1o7 on line 5 string(4) "test"
- Output for 8.1.0 - 8.1.28
- string(4) "test"
<?php
class A {
public function __construct() {
$this->bc = 'test';
}
}
$y = new A();
var_dump($y->bc);