> I am curious what the internal hang up is which prevents:
PHP's parser is... not exactly a great work of software engineering.
> PHP is... not exactly a great work of software engineering.
FTFY. :)
You can do better? As smart man as you are surely can figure out where to send the patches.
Main problem there is $foo→bar()() which seems to be harder to implement on top of existing parser.
Otherwise the patch is here: https://wiki.php.net/rfc/fcallfcall but since it's not complete it wasn't merged.
funcReturnsFunc(1)(2)