Why doesn't PHP throw an error on line 7?
<?php
class Test {
    public function __construct(){
        $name = 123;
        $this->$name = 'Test';
        var_dump($this->$name);
        $this->123 = 'Test2';
        var_dump($this->123);
    }
}
$test = new Test();
var_dump($test);
I always thought, that class fields couldn't start with numbers. But that doesn't seem to be the case if the number is in a variable.
 
    