在linux命令行中直接执行php命令

有时候用浏览器调试太麻烦,想在linux命令下直接执行php代码

php -r 'echo 0500;'
原文地址:https://www.cnblogs.com/wangkongming/p/4236138.html