I finally found a solution in older posts, leaving this here in case someone else comes across the same issue: The above quoted line is not part of wordpress core, must have been added by a plugin or something else, even if disabling plugins didn’t resolve my issue.
After making a copy of the wp-config.php as backup, I simply deleted the above mentioned piece of code with the create_function and can now log into my backend again.