3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (ip_vs_net("192.168.0.16","192.168.0.0","255.255.255.240")){ print "Адрес принадлежит сети"; }else{ print "Адрес не входит в подсеть"; } function ip_vs_net($ip,$network,$mask){ echo ip2long($ip)."\n"; echo ip2long($network)."\n"; echo ip2long($mask)."\n"; echo ((ip2long($ip))&(ip2long($mask)))."\n"; if (((ip2long($ip))&(ip2long($mask)))==ip2long($network)){ return 1; }else{ return 0; } } ?>
Output for git.master, git.master_jit, rfc.property-hooks
3232235536 3232235520 4294967280 3232235536 Адрес не входит в подсеть

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
56.57 ms | 401 KiB | 8 Q