diff --git a/typo3/cli_dispatch.phpsh b/typo3/cli_dispatch.phpsh
index 08e41520023b29186a64737ce4c4f0fc90e7cba2..7b8acac0ed63fb6910a6241070f01b6bc9317910 100755
--- a/typo3/cli_dispatch.phpsh
+++ b/typo3/cli_dispatch.phpsh
@@ -1,27 +1,4 @@
-#! /usr/bin/env php
+#!/usr/bin/env php
 <?php
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
 
-/**
- * Command Line Interface module dispatcher
- *
- * This script takes a "cliKey" as first argument and uses that to dispatch
- * the call to a registered script with that key.
- * Valid cliKeys must be registered in
- * $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys'].
- */
-call_user_func(function() {
-	$classLoader = require __DIR__ . '/../vendor/autoload.php';
-	(new \TYPO3\CMS\Backend\Console\Application($classLoader))->run();
-});
+require 'sysext/backend/Resources/Private/Php/cli.php';
diff --git a/typo3/sysext/backend/Resources/Private/Php/cli.php b/typo3/sysext/backend/Resources/Private/Php/cli.php
new file mode 100644
index 0000000000000000000000000000000000000000..051300335df629bcfa4b65335a90aa17cd722d61
--- /dev/null
+++ b/typo3/sysext/backend/Resources/Private/Php/cli.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+// Exit early if php requirement is not satisfied.
+if (version_compare(PHP_VERSION, '7.0.0', '<')) {
+    die('This version of TYPO3 CMS requires PHP 7.0 or above');
+}
+
+/**
+ * Command Line Interface module dispatcher
+ *
+ * This script takes a "cliKey" as first argument and uses that to dispatch
+ * the call to a registered script with that key.
+ * Valid cliKeys must be registered in
+ * $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys'].
+ */
+call_user_func(function() {
+    $classLoader = require __DIR__ . '/../../../../../../vendor/autoload.php';
+
+    (new \TYPO3\CMS\Backend\Console\Application($classLoader))->run();
+});