3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(filter_var('81.110.205.242', FILTER_VALIDATE_IP)); var_dump(filter_var('dead:beef::1', FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));