Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Without recursion.
Use
echo( $code . "\n");
There is no such test, you're printing the input of several tests together, the tests in PHP are fine. Not a kata issue:
The description gives a horrendous method to compute mystery(n). Your task is to find a better way to compute this value.
Haven't you tried to print the input? https://docs.codewars.com/training/troubleshooting/#print-input