3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ip = "127.0.0.1"; // Validate ip if (filter_var($ip, FILTER_VALIDATE_IP)) { echo("$ip is a valid IP address"); } else { echo("$ip is not a valid IP address"); }
Output for 5.6.0 - 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.3.0beta1
127.0.0.1 is a valid IP address