3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(filter_var('http://example.com', FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED));
based on InNRD
Output for 7.3.0beta1 - 7.3.0rc3
Deprecated: filter_var(): explicit use of FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED is deprecated in /in/fEBKW on line 4 string(18) "http://example.com"
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
string(18) "http://example.com"