3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( filter_var('http://http://www.google.com'), parse_url('http://http://www.google.com') );
based on bWWS0
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.24, 7.4.0 - 7.4.12, 8.0.0
string(28) "http://http://www.google.com" array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(4) "http" ["path"]=> string(16) "//www.google.com" }