3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // simple example $bcast = ip2long("192.168.178.255"); $smask = ip2long("255.255.255.0"); $nmask = $bcast & $smask; echo long2ip($nmask); // Will give 192.168.178.0 ?>
Output for 4.3.0 - 7.1.0
192.168.178.0