Cf. https://github.com/PHPCompatibility/PHPCompatibility
docker run --rm -it --init -v "$PWD:$PWD" -w "$PWD" tophfr/phpcompatibility -p .
or
docker run --rm -it --init -v "$PWD:$PWD" -w "$PWD" tophfr/phpcompatibility -p --runtime-set testVersion 7.3 .