Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Execute an external program
<?php exec(string $command, array &$output = null, int &$result_code = null): string|false
<?php     if (strpos($layer, 'php-8') === false) {

        exec("docker run --rm -v \${PWD}/helpers:/var/task/ --entrypoint /var/task/extensions-test.sh $layer", $output, $exitCode);

        if ($exitCode !== 0) {

            throw new Exception(implode(PHP_EOL, $output), $exitCode);

        }
<?php     'blackfire',

];

foreach ($devLayers as $layer) {

    exec("docker run --rm -v \${PWD}/helpers:/var/task/ --entrypoint php $layer -m", $output, $exitCode);

    $notLoaded = array_diff($devExtensions, $output);


    if ($exitCode !== 0 || count($notLoaded) > 0) {
<?php             return;

        }

        if (! self::isListening()) {

            exec('node ' . __DIR__ . '/server.js '

                . self::$port . ' >> /tmp/server.log 2>&1 &');

            self::wait();

        }

        self::$started = true;