How can you check the PHP Code is working?

How can you check the PHP Code is working?

You can the PHP code using this link:https://www.tehplayground.com/
Similarly, you can check the difference between the PHP codes using: https://www.diffchecker.com/