Bayesian inference of fundamental physics at extreme conditions