3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ip = "::ffff:0:10.0.0.3"; if (!filter_var($ip, FILTER_VALIDATE_IP) === false) { echo("$ip is a valid IP address"); } else { echo("$ip is not a valid IP address"); }
Output for 5.3.19 - 7.3.1
::ffff:0:10.0.0.3 is a valid IP address