Although I believe this is micro-optimization, you can use the function ip2long()to convert the ascii representation of the IP address to a 32-bit integer and long2ip()to convert it.
Try:
$int = ip2long('192.168.0.1');
echo $int;
$ip = long2ip(3232235521);
echo $ip;
Btw, IP , . , 192.168.0.1 19216801. , , . 19.216.80.1 192.168.0.1?
IP- - 32- , (, ). 3232235521 (192.168.0.1):
11000000 10101000 00000000 00000001
8 () . , . .
ascii .:
11000000 => 192
10101000 => 168
00000000 => 0
00000001 => 1
.. 192.168.0.1, . ( , )