3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(long2ip(0xC0A8071B)); var_dump(long2ip('0xC0A8071B'));
Output for 7.1.0 - 7.2.8
string(12) "192.168.7.27" Notice: A non well formed numeric value encountered in /in/P8TRB on line 4 string(7) "0.0.0.0"
Output for 4.3.0 - 5.6.30, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.0.31
string(12) "192.168.7.27" string(12) "192.168.7.27"