- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
- Fatal error: No code may exist outside of namespace {} in /in/4ZsQN on line 7
Process exited with code 255.
<?php
namespace Foo {
class Bar { }
}
print (new ReflectionClass('Foo\Bar'))->getShortName(); // for namespaces, if any