The original code was written by Raymond Ferguson , so all credits goes to him . PHP subnet calculator
I made a few modifications on the code , now it is also compatible with PHP >= 5.3 .
mboeru: chaged design. Implemented Bootstrap
Note :
Although this script isn't perfect , it can help out to quickly calculate subnet-shemas ( number of hosts , broadcast domain , network id ) .
Bugs : Even if you try to resolve a Class C with an CIDR lower than 24 , let say 18 , it will calculate output .
Added IPV6 support from https://github.com/benburkhart1/ipv6-subnet-calculator