<?php
class Another{}
namespace My\Full\Classname;
class Another{}
namespace Waa;
use My\Full\Classname as Another;
$obj = new Another; // instantiates object of class My\Full\Classname
$a = 'Another';
$obj = new $a; // instantiates object of class Another
?>
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /in/3a0Kd on line 5
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Fatal error: Uncaught Error: Class 'My\Full\Classname' not found in /in/3a0Kd:12
Stack trace:
#0 {main}
thrown in /in/3a0Kd on line 12
Process exited with code 255.