I have this exec:
exec(\'start /B index.php r\');
When I run it on localhost it opens the index.php file in Visual Studio Code.
index.php