3v4l.org

run code in 200+ php & hhvm versions
<?php var_dump(filter_var('http://[::1]/foo/bar', FILTER_VALIDATE_URL));
Output for 7.0.0 - 7.2.8
string(20) "http://[::1]/foo/bar"
Output for 5.3.22 - 5.6.28
bool(false)