3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ip_hex = 0xC0A8071B; $ip_octet = long2ip($ip_hex); $ip_num = ip2long($ip_octet); echo 'IP Octet: ', $ip_octet; echo 'IP Hex: ', $ip_num, $ip_hex;
based on P8TRB
Output for 4.3.0 - 7.2.0
IP Octet: 192.168.7.27IP Hex: 32322373393232237339