Level 1
php artisan --version
<?phpLaravel Framework 5.8.31
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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
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.