php シェルを使って簡単に検証
ちょっとしたコードの動作を確認したい場合に使えると思う。というか使った。
インタラクティブ Shell便利ー
$ man php
...
-a Run PHP interactively. This lets you enter snippets of PHP code that directly get executed. When readline sup-
port is enabled you can edit the lines and also have history support.
使い方の例
$ php -a
Interactive shellphp > print("Hello World");
Hello World
php > print(phpversion());
5.5.21
php > $imagickVersion = phpversion('imagick');
php > print($imagickVersion) ;
3.4.3RC1
php > exit
$