CLI doesn't work with XAMPP

I installed XAMPP a while ago but at that point I did not longer get CLI to work. I’ve also updated CLI to the latest version.

Sorry about the Swedish but this is the enviroment variables for my user:

My files in that folder:

Because of the error I’m getting it feels like the enviroment variables are correct and that it is something else that is the trouble? I mean Kirby CLI does run.

Any ideas?

Looks like some required PHP module is missing. Which variant of PHP did you use before? You could try to keep using that on the CLI by removing the XAMPP directory from the environment and adding your old one back in. XAMPP itself should still work.