You can change the PHP version Sail uses
https://laravel.com/docs/8.x/sail#sail-php-versions
and 7.4 is available on Heroku, I am also using that one.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, I've just finished a laravel 8 app and now that I wanna deploy it to heroku I get an error about my php version, I use sail and docker as stated in the laravel docs and when I try sail php -v it says 8.0.5 which apparently isn't available in heroku, I'd like to know how I could change that to an available version.
Please or to participate in this conversation.