src/PhpConsole/EvalProvider.php
protected function restoreGlobals() {
		foreach($this->globalsBackup as $key => $value) {
			$GLOBALS[$key] = $value;
		}
		foreach(array_diff(array_keys($GLOBALS), array_keys($this->globalsBackup)) as $newKey) {
			if($newKey != 'GLOBALS') {
				unset($GLOBALS[$newKey]);
			}
		}
	}
protected function restoreGlobals() {
		foreach($this->globalsBackup as $key => $value) {
			$GLOBALS[$key] = $value;
		}
		foreach(array_diff(array_keys($GLOBALS), array_keys($this->globalsBackup)) as $newKey) {
			if($newKey != 'GLOBALS') {
				unset($GLOBALS[$newKey]);
			}
		}
	}
protected function restoreGlobals ( ) { foreach ( $ this -> globalsBackup as $ key => $ value ) { $ GLOBALS [ $ key ] = $ value ; } foreach ( array_diff ( array_keys ( $ GLOBALS ) , array_keys ( $ this -> globalsBackup ) ) as $ newKey ) { if ( $ newKey != 'GLOBALS' ) { unset ( $ GLOBALS [ $ newKey ] ) ; } } }
Restore global vars data from backup var
Restore global vars data from backup var