It's not a great solution, but there are drop in libraries that shim the old mysql_* functions to their mysqli_* equivalents.
https://github.com/dshafik/php7-mysql-shim
It won't be 100% perfect and it's definitely not something I'd want to use long term, but it can help with the initial migration to PHP 7.