Last I checked, openprocessing.com supports both p5.js and processing.js
Be warned though: because processing.js was the precursor to p5, its not been supported in a long time. You’ll just have to be conservative and cautious about the Java you use
As @tony has warned: Processing.js was discontinued in December of 2018. For Processing.js, you could use JSFiddle, or some similar front-end developer playground. I speak under correction here, but Processing.js just ‘fakes’ datatypes. For example, the following are equivalent and all work fine in Processing.js:
Thanks for the links, that’s great!
I also appreciate the clarification on running processing on a browser and how it deals with datatypes. Hopefully it should be enough for me to explain what variables are and the distinction between the different datatypes.