Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Execute batch file as PHP script (one line shebang for PHP scripts on Windows)
@(<nul set /p=#! & type ^"%~f0^") | php -- %* & goto :eof
<?php declare(strict_types=1);
// script goes here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment