Ci3 and gc1.x with php8.3 support

Is there a way to use the old grocerycrud with PHP 8.3 and CI3? I have a project that I have to build from scratch using CI4 and Grocery CRUD 2.x (not enterprise). Can you propose a way? However, if I want to build it in CI4, should I use the gc2.x? Version for free?

Also i have a problem using the session on ci4 and gc2.x . i can’t use it on views? With this format $this->userdata();

thanks .