3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! $ips = array( "1.1.011.011", "127.0.0.1", "1.1.071.071", "0.0.0.0", "1.1.081.081", "192.168.0.0", "256.0.0.1", "192.168.0xa.5", ); foreach($ips as $ip) { var_dump(ip2long($ip)); }
Output for 5.2.10 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(false) int(2130706433) bool(false) int(0) bool(false) int(3232235520) bool(false) bool(false)
Output for 5.0.0 - 5.2.9
int(16845065) int(2130706433) int(16857401) int(0) bool(false) int(3232235520) bool(false) int(3232238085)
Output for 4.3.5 - 4.4.9
int(16845065) int(2130706433) int(16857401) int(0) int(-1) int(3232235520) int(-1) int(3232238085)
Output for 4.3.0 - 4.3.4
int(16845065) int(2130706433) int(16857401) int(0) int(4294967295) int(3232235520) int(4294967295) int(3232238085)