3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(long2ip(0xC0A8071B)); var_dump(long2ip('00000000000000000000000017e50028'));
Output for 7.1.0 - 7.2.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 - 7.0.20
string(12) "192.168.7.27" string(8) "0.0.0.15"