Is there any way to test PHP locally without installing a server?

前端 未结 9 1974
刺人心
刺人心 2020-12-23 11:28

I\'m looking for something like http://phpfiddle.org/, but completely local. I don\'t want to commit to installing something as complex as Apache, then PHP on top of that, j

9条回答
  •  不知归路
    2020-12-23 11:51

    Use psysh which is a wonderful tool for the purpose you described.

    If your project is on Laravel, then it's "built in", as tinker, so you can invoke it as php artisan tinker.

提交回复
热议问题