A friend showed me this puzzling code the other day.
Can you guess the output?
1 2 3 4 5 6 7 8 9 10 11
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.