install PHP on your pc, paste your code into a .php file, and use the php command to execute the .php file.
Dimitri
11:47 am on Jan 17, 2017 (gmt 0)
Sorry, but I am puzzled at what you are trying to do... I mean, obviously, you don't know what is PHP, and I am curious as to why your friend gave you such a code, since you don't know what it is, and how to use it ...
By the way, phranque is correct, install PHP [ [windows.php.net...] ] , save your piece of PHP code into a file like "code.php" and execute it from a command line prompt with "php -f c:/path/to/file/code.php" . However, I doubt it's going to give the result you are expecting ...