In QuickBooks Online, running Profit & Loss by Account to see all the payroll expenses is unavailable. Instead, you can customize the report and change the Display columns by Employees.
Here's how:
Go to the Reports menu.
Type in Profit and Loss report.
Enter the correct reporting period.
Choose Employee from the Display column by section.