3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(long2ip(0xC0A8071B)); var_dump(long2ip('0xC0A8071C')); var_dump(long2ip('0xC0A8071D')); var_dump(long2ip('0xC0A8071E')); var_dump(long2ip('0xC0A8071F'));
based on P8TRB
Output for 7.1.0 - 7.2.0
string(12) "192.168.7.27" Notice: A non well formed numeric value encountered in /in/HT8f1 on line 4 string(7) "0.0.0.0" Notice: A non well formed numeric value encountered in /in/HT8f1 on line 5 string(7) "0.0.0.0" Notice: A non well formed numeric value encountered in /in/HT8f1 on line 6 string(7) "0.0.0.0" Notice: A non well formed numeric value encountered in /in/HT8f1 on line 7 string(7) "0.0.0.0"
Output for 5.3.19 - 7.0.20
string(12) "192.168.7.27" string(12) "192.168.7.28" string(12) "192.168.7.29" string(12) "192.168.7.30" string(12) "192.168.7.31"