For better formatting, it's probably copy-paste from here:
https://stackoverflow.com/questions/31954474/which-programming-language-is-used-in-this-code
> Looka like the code implements a simple Prolog interpreter, albeit, for a J programmer's perspective, with some damn ugly code (my take is @hoosierEE is correct: this guy originally wrote the parser in explicit J and then used 13 : to convert that to tacit J; so that he could "show off" his skills on his blog. Not realizing, or course, that the results of using 13 : to convert large passages of explicit J to tacit J are about the same as the results of converting large passages of Russian to English: they get the idea across, but in a ridiculous way.) > > - Dan Bron
OP is just spamming around asking for someone to voluntarily translate it to PHP: https://stackoverflow.com/questions/32286976/how-to-convert-this-j-code-into-php-code
You may like this 29 byte version:
(]=3+4=*)[:+/^:2(,"0/~i:1)&|.
Originally found here on Reddit, can't find the source link atm.
This is top-notch J code, and deserves a TIO:
Note: After tangentstorm's and according to standard stackexchange code gold rules, this is 29 bytes.
Sorry! Yes. Every two weeks (starting tomorrow) the BAA will host talks in this zoom room (16:00 BST): https://zoom.us/j/177134863
Alternating weeks will be Dyalog webinars on dyalog.tv
In python you can get something similar using generators, but it is a little bit more inconvenient to use than
(-:^:_)10
or {x%2}/10