PHP 4.3 has been released and with it comes one more reason for people like me for not using Perl 😉
The CLI now is a different distinct SAPI, though I have used PHP for shell scripting often things like $ some_application | some_filter | php | sort -u >final_output.txt had many limitations.