PHP 5.3 has different operator precedence to 7.x, if memory serves. So retaining the PHP version would be a problem. Plugins should work exactly the same between different OSes providing that permissions are the same. Changing between Apache and Nginx can break them if they’re dependent on rewrites/.htaccess.
I hope that helps.
solved Can super form WordPress plugin works on different OS , with php version 7.0?