php 5.6显示变量范围的错误

I am running both mamp with php 5.5 and laravel forge with php 5.6- this works fine on mamp/5.5 but in laravel forge i get an undefined error for the variable $date

<?

$date = date('l, dS F');
$already = false;

foreach($events as $event){?>
    <?

    if(date('l, dS F',strtotime($event->start_time)) != $date){
        $date = date('l, dS F',strtotime($event->start_time));

    ?>
    <div class="row">
        <div class="col-md-12">
            <h4 style="color:#003399">{{$date}}</h4> **<------ this throws Undefined variable: date**
        </div>
    </div>

This seems really strange to me

laravel error : http://imgur.com/mI97XOR

It looks like short-tags are not enabled.

You will probably see your php source code when you view the source in your browser.

You can either enable short tags or use <?php instead of <?.