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
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.
php artisan tinker