A friend showed me this puzzling code the other day.
Can you guess the output?
If you guessed
PHP Fatal error: Function name must be a string you would be wrong. PHP seldom does what you would expect.
I’m having a hard time imagining a situation where this behavior could be useful. I suppose it gives you a brand new default instance of an unknown class. Unless of course the constructor had required parameters. Then who knows what comes out of it!
PHP is not a sane language.