3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(long2ip(0xC0A8071B)); var_dump(long2ip('00000000000000000000000017e50028'));
Output for 7.1.0
string(12) "192.168.7.27" Warning: long2ip() expects parameter 1 to be integer, string given in /in/CcEHg on line 4 NULL
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
string(12) "192.168.7.27" string(8) "0.0.0.15"