just vs only

What is the difference between ‘just’ and ‘only’?

Actually there’s a world of difference, to put it mildly. :)))
Look here:
thefreedictionary.com/just
thefreedictionary.com/only

Though if you look at definition 5 for “just”, you’ll observe that in that sense they are patently synonyms.