実行結果からincludeして値を受け取りたい

渡す側(http://example.com/value.php

<?php
	if($_GET["mode"] == "inc"){
		echo "<?php \$hoge = 'hogehoge'; ?>";
	}
	else{
		//すごい重い処理とか
		//長い行のコードとか
	}
?>

受け取る側(http://example.com/include.php

<?php
include("http://example.com/value.php?mode=inc");
var_dump($hoge);
?>

http://example.com/include.phpの実行結果

string(8) "hogehoge"

うーん何かもっとスマートな方法があるのかなー。。。