During development (multiple people in the team) sometimes composer install
returns:
Warning: The lock file is not up to date with the latest change
You can run
composer install --dry-run
--dry-run Outputs the operations but will not execute anything (implicitly enables --verbose).
This won't change anything but will show the warning if not up to date. But it will still have to check the servers for new versions of your installed packages, so if you have many installed this might still take more than milli seconds. Anyway it's faster.