Don't just copy a code example, read the documentation, both PHP and chrome --headless.
You'll need to use shell_exec() or oblique quotes.
What's more, you need the full chrome path and the --disable-gpu option to make it work on Windows.
What works :
$command ='"C:\Program Files\Google\Chrome\Application\chrome.exe" --headless --disable-gpu --dump-dom h ttps://developer.chrome.com';
$output = shell_exec($command);
if(is_null($output)) error_log("output is null" ) ;
elseif($output === false) error_log("output is false" ) ;
else error_log("output=".$output);
Note: delete the h ttps space to prevent it from becoming a link.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons