Laravel 4 requires PHP 5.3+
This blog post was originally published a little while ago. Please consider that it may no longer be relevant or even accurate.
A quick little gotcha from this morning while trying to deploy a new Laravel 4 app:
It's not immediately obvious, but the reason is because
__DIR__ is a magic contstant that is only added in PHP 5.3. I was accidently trying to deploy Laravel 4 on a PHP 5.2 server, where the server requirements of Laravel 4 actually include PHP 5.3.7+.
It's probably also worth noting that at the time of this article, PHP 5.3 is reaching it's end of life (EOL). If you're provisioning new servers, make sure you hook it up with at least 5.4!