PHPのインタラクティブモード

こんな感じ。

C:\Documents and Settings\bojovs>php -v
PHP 5.2.6 (cli) (built: May  2 2008 18:02:07)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

C:\Documents and Settings\bojovs>php -a
Interactive mode enabled

<?php
$a = 1;
print $a + 1;
2
exit();

C:\Documents and Settings\bojovs>