Level 20
Vagrant/Homestead is a virtual Ubuntu machine with its own PHP installation. The other one is probably the version you have installed on your own machine. You can change the PHP version in Homestead by running php71 (for 7.1) or some other version. You can also change the version per-project in you Homestead.yaml file.
https://laravel.com/docs/5.8/homestead#multiple-php-versions