3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(long2ip(522e0053)); var_dump(long2ip('0xC0A8071B'));
based on P8TRB
Output for 7.1.0 - 7.2.0
Warning: long2ip() expects parameter 1 to be integer, float given in /in/ZGt5d on line 3 NULL Notice: A non well formed numeric value encountered in /in/ZGt5d on line 4 string(7) "0.0.0.0"
Output for 5.4.0 - 7.0.20
string(7) "0.0.0.5" string(12) "192.168.7.27"