public TraceInfo traceCloned() {
        TraceInfo trace = getCallStack().trace();
        if (trace != null) {
            try {
                TraceInfo clone = trace.clone();
                clone.setCallCache(null);
                return clone;
            } catch (CloneNotSupportedException e) {
                return null;
            }
        }

        return null;
    }
Remove all method which does not destruct

@throws Throwable
jphp-runtime/src/php/runtime/env/Environment.java