@Override
    protected void finalize() throws Throwable {
        super.finalize();
        freeIds.push(id);
    }
Gets Environment for current thread context
jphp-runtime/src/php/runtime/env/Environment.java