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.
Someone added a performance test at some point, older solutions didn't have to pass that test. It's still possible to pass in PHP, you just need a faster solution.
I had the same issue in PHP. In the end, I copied the best solutions offered here and they all fail the speed test. :)))))
Your solution being too slow is not a kata issue.
I just solved the kata in PHP and had no issues related to timeout. I think you need more than two lines.