Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

yenoyi7740's avatar

php tag command line

When I run command for artisan I see <?php in front of it. How is this possible? What did I do wrong?

php artisan --version

0 likes
3 replies
yenoyi7740's avatar
php artisan --version
<?phpLaravel Framework 5.8.31
bobbybouwmann's avatar
Level 88

Mmh, it seems that you have somewhere in your project two opening PHP tags. They look like this <?php<?php. If you search for this in your project and repair it to just <?php everything should work correctly again ;)

Please or to participate in this conversation.