<?php
include('vendor/autoload.php');

use TddFizzBuzz\FizzBuzzBang;

$fizzer = new FizzBuzzBang();

foreach(range(1,5000) as $num) {
    $message = $fizzer->run($num);
    echo "$message ";
    if ('BangBangBangBang' === $message) {
        echo '!' . PHP_EOL;
        exit;
    }
}

<?php
include('vendor/autoload.php');

use TddFizzBuzz\FizzBuzzBang;

$fizzer = new FizzBuzzBang();

foreach(range(1,5000) as $num) {
    $message = $fizzer->run($num);
    if ('BangBangBang' === $message) {
        echo "{$message}!" . PHP_EOL;
        exit;
    }
    echo "$message ";
}

Reduce string check to 'BangBangBang' because it sounds better than 4 bangs.
Reduce string check to 'BangBangBang' because it sounds better than 4 bangs.
