Hello,
As long as php 5.4 is on your server, you can simply follow the article on using multiple php versions per account. For each cPanel, simply put the php 5.4 code in the .htaccess file of the home directory. That will cause the cPanel account to use that version of php.
Kindest Regards,
Scott M