<?php

echo "<pre>";

echo "__DIR__:\n";
echo __DIR__;

echo "\n\n";

echo "dirname(__DIR__):\n";
echo dirname(__DIR__);

echo "\n\n";

$bootstrap = dirname(__DIR__) . '/bootstrap/app.php';

echo "Looking for:\n";
echo $bootstrap;

echo "\n\n";

echo file_exists($bootstrap)
    ? "FOUND bootstrap/app.php"
    : "NOT FOUND bootstrap/app.php";