Does PHP work?

Yes, it does. PHP Version 8.1.27

To run the WXGRAPHIC script, you need GD enabled in PHP.
Current GD status:

If you don't see "Yes, it does." in large font above, then PHP is not enabled.