3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ip = '192.168.21.0 - 192.168.21.255'; $ip = explode('-', $ip); list($lower, $upper) = $ip; $lower_dec = (float) sprintf("%u", ip2long($lower)); $upper_dec = (float) sprintf("%u", ip2long($upper)); print_r(ip2long($lower)); print_r(ip2long($upper));
Output for 5.2.10 - 7.1.7
Output for 5.0.0 - 5.2.9
3232240896
Output for 4.3.5 - 4.4.9
3232240896-1
Output for 4.3.0 - 4.3.4
32322408964294967295