add log for console.log with php