How to find all inputs that make use of the php input filter to fully disable the php filter module? I want to disable the PHP Filter module on a large website, but going through all nodes, blocks and other fields where you could make possible use of the php filter would take eons.

Is there a simple way or method maybe by running SQL queries to find out where the php filter is used throughout my website?
Rather than re-inventing the wheel, just install the Security Review module, which has the following check:


  PHP or Javascript in content (nodes and comments and fields in Drupal 7)


For blocks you can check the format column in the block_custom table.

The difficult one is Views - I've yet to find a reliable way to locate rogue PHP in Views programmatically.