use " instead of ' on windows when using the cli version with -r
php -r "echo 1"
-- correct
php -r 'echo 1'
PHP Parse error: syntax error, unexpected ''echo' (T_ENCAPSED_AND_WHITESPACE), expecting end of file in Command line code on line 1
use " instead of ' on windows when using the cli version with -r
php -r "echo 1"
-- correct
php -r 'echo 1'
PHP Parse error: syntax error, unexpected ''echo' (T_ENCAPSED_AND_WHITESPACE), expecting end of file in Command line code on line 1