It's console.log() for PHP!
PHP console::log is a class that is modeled after Chrome's console API. The console class is a wrapper class that inserts logs from PHP into the browser's console.
Include the console class
Variables, objects and arrays can then be passed to the console. The logs are automatically exported to the console.
console::log( "hello world!" );
For more information check out the wiki