#!/usr/bin/env php
<?php declare(strict_types=1);

require __DIR__ . '/../../vendor/sebastian/version/src/Version.php';

use SebastianBergmann\Version;

$buffer  = \file_get_contents(__DIR__ . '/../../src/Runner/Version.php');
$start   = \strpos($buffer, 'new VersionId(\'') + \strlen('new VersionId(\'');
$end     = \strpos($buffer, '\'', $start);
$version = \substr($buffer, $start, $end - $start);
$version = new Version($version, __DIR__ . '/../../');

print $version->getVersion();

#!/usr/bin/env php
<?php declare(strict_types=1);

require __DIR__ . '/../../vendor/autoload.php';

use SebastianBergmann\Version;

$buffer  = \file_get_contents(__DIR__ . '/../../src/Runner/Version.php');
$start   = \strpos($buffer, 'new VersionId(\'') + \strlen('new VersionId(\'');
$end     = \strpos($buffer, '\'', $start);
$version = \substr($buffer, $start, $end - $start);
$version = new Version($version, __DIR__ . '/../../');

print $version->getVersion();

Revert "Do not rely on autoloading here"
Revert "Do not rely on autoloading here"

This reverts commit 85a600955c71a52922e50ec4755f19f8fdede5ef.
