Is there a PHP Sandbox, something like JSFiddle is to JS?

Yes, there are several PHP sandbox options available online. Some popular choices include:

These sandboxes allow you to write, test and run PHP code in a web-based environment, similar to JSFiddle for JavaScript.