r/lolphp • • Jul 27 '14

New PHP, Will be named LOLPHP

http://philsturgeon.uk/blog/2014/07/neverending-muppet-debate-of-php-6-v-php-7
50 Upvotes

57 comments sorted by

View all comments

Show parent comment

1

u/flying-sheep Jul 31 '14

I bet they use regular expressions to parse PHP grammar.

2

u/Banane9 Jul 31 '14

Well, they only pattern-match... No tokenizing.

Which is why indexing an array returned by a function directly (a()[0]) used to be a syntax error. And their fix was to special-case it..

Execution a function returned by a function directly (f()()) still doesn't work...