eval(js code);

Use echo(string) or dump(object) to print information in the output field. $ = jQuery. Ctrl-Enter / Command-Return = Execute eval. To insert code in the dom: $('body').append($('<p>data here</p>'));

output: