<?php 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) {
throw new Exception(implode(PHP_EOL, array_map(function ($extension) {
return "Extension $extension is not loaded";
}, $notLoaded)), $exitCode);