I don't think that laravel loaded Php on your computer, it must have been installed previously. Normally on a windows machine a package like WAMP is installed which provides Php and MySql. I would guess that you already had Php on your machine.
PHP Confusion
I just downloaded Laravel (on Windows 10) and am going through the online learning. Although everything seems to function properly in the examples, I get several errors when creating a new project. The problems all seem to stem from the fact that I have PHP 5.6.25 and need 7.1.3.
I'm still a bit confused about what was installed during the laravel install, but it seems that a localhost server was set up (this starts when I use the php artisan serve command). I assume php was also installed as part of the laravel installation.
So the question is, how do I bring my php up to the required 7.1.3. While I don't understand why the laravel install wouldn't have included the required version, I assume this is something I'll have to update regularly.
Thanks for your assistance
I assume php was also installed as part of the laravel installation
No
how do I bring my php up to the required 7.1.3.
If you are using WAMP:

While I don't understand why the laravel install wouldn't have included the required version
https://github.com/laravel/laravel/blob/master/composer.json#L11
This is just composer, PHP version it's included in composer.json file, it forces you to have PHP 7 because, Laravel uses PHP 7 features - http://php.net/manual/en/migration70.new-features.php - you will find some PHP 7 features in Laravel core
Please or to participate in this conversation.