I hate to answer my own question, and will gladly mark a better answer (short and elegant and independent of outside servers unlike below, maybe using the network stack, traceroute or some such wizardry), but for now for a task this small we needed something quick for staging or production, so:
$CustomerIp = system("curl -s ipv4.icanhazip.com") ; // returns string '93.9.29.389' (length=11)