The error is in your math:
100 minus 10% equals 90
You want this calculation:
100 times 100 divided by 110 (i.e. - the original percent) equals 90.909090...
Check the math: 90.91 times 1.1 equals 100.001
(there's a tiny remainder because I rounded)
Here's how it would look in PHP:
$original_price = ($total_with_tax * 100) / 110;