For those that are familiar with Rails, you can do
script/console
in the root of an app, and you'll get an interactive shell that has all your app code loaded, where you can enter Ruby expressions, and their results will get printed on the next line.
Is there something like that in Cakephp, or is console just for scripts? If not, could you theoretically build such a thing on top of the console? I'm not sure, because I'm not too familiar with PHP.