I’ve put up the algorithm on my website so people don’t have to run perl locally
Full credit belongs to @_tmp!
https://public.z3ntu.xyz/FP3/verify-code.php
Funnily I didn’t have to change much from the original code because Perl and PHP seem to provide the same functions and the rest of the syntax is also more or less the same
And now thinking about this, it would have probably been nicer to implement it as client-side JavaScript. Oh well.